﻿(function () {
    "use strict";
    var e = window.jQuery,
		t = {
		    version: "0.0.1",
		    time_stamp: +(new Date),
		    system: {},
		    number: {},
		    date: {},
		    string: {},
		    cookie: {},
		    pages: {}
		};
    t.system.is_mobile = function () {
        var e = window.navigator.userAgent,
			t = e.length,
			n = e.replace(/iphone|ipad mini|ipad|ipod|android|Series60|BlackBerry|Windows Phone/gi, "").length;
        return n !== t
    }(),
    t.number.format = function (e, n, r) {//n,保留几位小数
        var i;
        n = typeof (n * 1) != "number" || isNaN(n * 1) ? 2 : Math.abs(n), i = Math.pow(10, n), e *= 1;
        var s = 9.9999e-11;
        switch (r) {
            case 1:
                e = Math.ceil(e * i) / i;
                break;
            case -1:
                e = Math.floor(e * i + s) / i;
                break;
            case 465:
                var o = Math.floor(e * i + s) % 10 % 2,
                    u = Math.floor(e * i * 10 + s) % 10 == 5,
                    a = u && !o ? 1 / i : 0;
                e = t.number.format(e, n) - a;
                break;
            default:
                e = (e * i + s) / i
        }
        return (e.toFixed(n) + "").replace(/^\./g, "0.").replace(/\.$/, "")//ToFixed四舍五入为指定小数的数字
    },
    t.number.currency = function (e, n, r) {
        var i;
        return typeof n != "undefined" && (e = t.number.format(e, n, r)), i = (e + "").split("."), i[0] = i[0].replace(/(\d)(?=(\d{3})+$)/g, "$1,"), (i[0] + (i.length == 2 ? "." + i[1] : "")).replace(/^\./g, "0.")
    },
    t.number.percent = function (e, n, r, i) {
        return t.number.format(e * 1 * (n || 100), r, i)
    },
    t.number.combo = function (e, t) {
        var n, r;
        e / 2 < t && (t = e - t);
        if (e < t || t < 0) return 0;
        if (e >= 0 && t === 0) return 1;
        n = 1, r = e;
        for (var i = 1; i <= t; i++) n *= i, i < t && (r *= e - i);
        return r / n
    },
    t.number.each_combo = function (e, t) {
        var n = [];
        return function r(e, t, i) {
            if (i === 0) return n.push(e);
            for (var s = 0, o = t.length; s <= o - i; s++) r(e.concat(t[s]), t.slice(s + 1), i - 1)
        }([], e, t), n
    },
    t.number.each_array_combo = function (e) {
        var t = 0,
			n = e.length,
			r = [],
			i, s = [];
        return s.push(e), function o(e) {
            var s = [];
            for (var u = 0, a = e.length; u < a; u++) for (var f = 0, l = e[u][t].length; f < l; f++) i = [].concat(e[u]), i.splice(t, 1, e[u][t][f]), s.push(i);
            t++;
            if (!(t < n)) {
                r = s;
                return
            }
            o(s)
        }(s), r
    },
    t.number.permutation = function (e, t) {
        var n = 1;
        if (e < t || t < 0) return 0;
        for (var r = 0; r < t; r++) n *= e - r;
        return n
    },
    t.number.each_permutation = function (e, t) {
        var n = [];
        return function r(e, t, i) {
            if (i === 0) return n.push(e);
            for (var s = 0, o = t.length; s < o; s++) r(e.concat(t[s]), t.slice(0, s).concat(t.slice(s + 1)), i - 1)
        }([], e, t), n
    },
    t.number.random = function (n) {
        var r = {
            min: 0,
            max: 9,
            share: [],
            shahao: [],
            size: 1
        };
        e.extend(r, n), r.count = r.count || 1;
        var i = function (t) {
            var n, r, i = 0,
                s, o, u = "0000000000000000";
            s = (t.max + "").length, n = (t.share || []).toString(), n = n === "" ? [] : n.split(/[,\-_=+\|]/), o = n.length;
            if (o > 0 && t.max > 9) for (var a = 0; a < o; a++) n[a].length < s && (n[a] = u.substr(0, s - n[a].length) + n[a]);
            while (i < t.size) {
                r = Math.floor(Math.random() * (t.max - t.min + 1)) + t.min + "", r = u.substr(0, s - r.length) + r;
                if (t.repeat || !t.repeat && e.inArray(r, n) == -1 && e.inArray(r, t.shahao || []) == -1) n.push(r), i++
            }
            return !t.sort || n.sort(), typeof t.split_str != "undefined" ? n.join(t.split_str) : n
        },
			s = [],
			o = t.number.combo(r.max - r.min + 1 - r.share.length - r.shahao.length, r.size);
        o < r.count && (r.repeat_team = 1);
        for (var u = 0; u < r.count; u++) {
            var a = i(r);
            if (!r.repeat_team) {
                var f = s.length,
					l = 0;
                for (var c = 0; c < f; c++) if (s[c].toString() == a.toString()) {
                    l = 1;
                    break
                }
                l ? u-- : s.push(a)
            } else s.push(a)
        }
        return s
    },
    t.number.to_number = function (e) {
        return e -= 0, e = isNaN(e) ? 0 : e, e
    },
    t.number.pass_key = function (t) {
        return e.inArray(t.keyCode, [8, 16, 17, 37, 38, 39, 40, 46, 67]) >= 0
    },
    t.number.is_seq = function (e) {
        var t = [].concat(e),
			n, r;
        t.sort(function (e, t) {
            return e - t
        });
        for (n = 0, r = t.length; n < r - 1; n++) if (t[n + 1] - t[n] == 1) return !0;
        return e.length < 2 ? !1 : !1
    },
    t.date.format = function (e, n) {
        var r, i, s, o, u, a, f;
        return e = typeof e == "object" ? e : new Date(e * 1), n = n || "YYYY-MM-DD hh:mm:ss", r = e.getFullYear(), s = e.getMonth() + 1, o = e.getDate(), u = e.getHours(), a = e.getMinutes(), f = e.getSeconds(), i = (r + "").replace(/^\d\d/g, ""), s = s < 10 ? "0" + s : s, o = o < 10 ? "0" + o : o, u = u < 10 ? "0" + u : u, a = a < 10 ? "0" + a : a, f = f < 10 ? "0" + f : f, t.string.mul_replace(n, [
			[/YYYY/, r],
			[/YY/, i],
			[/MM/, s],
			[/DD/, o],
			[/hh/, u],
			[/mm/, a],
			[/ss/, f]
        ])
    },
    t.date.to_date = function (t) {
        var n, r, i;
        return n = e.trim(t).split(" "), r = n[0].split(/[\-\/]/), i = n[1] ? n[1].split(":") : [0, 0, 0], new Date(r[0], r[1] - 1, r[2], i[0], i[1], i[2])
    },
    t.date.get_date = function (e) {
        var t = /^\s*(\d{4})-?(\d\d)-?(\d\d)\s*$/,
			n = new Date(NaN),
			r, i = t.exec(e);
        return i && (r = +i[2], n.setFullYear(i[1], r - 1, i[3]), r != n.getMonth() + 1 && n.setTime(NaN)), n
    },
    t.date.get_week_text = function (e) {
        e = e.replace(/[\-\/]/g, "");
        var t = new Date(e.substr(0, 4) * 1, e.substr(4, 2) * 1 - 1, e.substr(6, 2) * 1),
			n = t.getDay(),
			r = ["\u5468\u65e5", "\u5468\u4e00", "\u5468\u4e8c", "\u5468\u4e09", "\u5468\u56db", "\u5468\u4e94", "\u5468\u516d"];
        return r[n]
    },
    t.string.len = function (e) {
        return e.replace(/[^\x00-\xff]/g, "--").length
    },
    t.string.cut = function (e, n, r) {
        return r = r || "", t.string.len(e) <= n - r.length ? e : (n -= r.length, e.substr(0, n).replace(/([^\x00-\xff])/g, "$1 ").substr(0, n).replace(/[^\x00-\xff]$/, "").replace(/([^\x00-\xff]) /g, "$1") + r)
    },
    t.string.get_url_param = function (e, t) {
        var n, r, i;
        return t = (t || window.location.href).toLowerCase().split("#"), e.indexOf("#") != -1 ? i = t.length < 2 ? "" : t[1] : i = t[0], n = i.match(new RegExp("(|[?&#])" + e.replace("#", "") + "=([^#&?]*)(\\s||$)", "gi")), n ? decodeURIComponent(n[0].split("=")[1]) : ""
    },
    t.string.mul_replace = function (e, t) {
        for (var n = 0, r = t.length; n < r; n++) e = e.replace(t[n][0], t[n][1]);
        return e
    },
    t.string.dbc_to_sbc = function (e) {
        return t.string.mul_replace(e, [
			[/[\uff01-\uff5e]/g, function (e) {
			    return String.fromCharCode(e.charCodeAt(0) - 65248)
			}],
			[/\u3000/g, " "],
			[/\u3002/g, "."]
        ])
    },
    t.cookie.get = function (e, t) {
        var n = document.cookie.match(new RegExp("(^| )" + e + "=([^;])*", "gi")),
			r = n ? n[0].split(e + "=")[1] : "";
        return t ? r : decodeURIComponent(r)
    },
    t.cookie.set = t.cookie.del = function (e) {
        var t = [];
        t.push(e.name + "="), e.value && t.push(e.encode ? e.value : encodeURIComponent(e.value));
        if (e.expires) {
            var n = new Date;
            n.setHours(0), n.setMinutes(0), n.setSeconds(0), n.setTime(n.getTime() + e.expires * 864e5), t.push(";expires=" + n.toGMTString())
        }
        e.domain && t.push(";domain=" + e.domain), t.push(";path=" + (e.path || "/")), e.secure && t.push(";secure"), document.cookie = t.join("")
    },
    window.Q = window.qh360cp = t
})();
(function () {
    "use strict";
    var e = window.jQuery,
		t = window.qh360cp,
		n = window._;
    t.config = t.config || {}, t.config.curr_domain = window.location.protocol + "//" + window.location.hostname;
    if (window.config_360cp) {
        e.extend(t.config, window.config_360cp);
        if (t.config.ssl_login) {
            var r = new Image;
            r.onerror = function () {
                t.config.ssl_login = 0, t.config.ssl_reg && (t.config.ssl_reg = 0), t.config.ssl_pay && (t.config.ssl_pay = 0), (new Image).src = "/debug/debugcdn?src=" + encodeURIComponent("ssl_fail___" + e(".passport_username").text() + "___" + e(".passport_username").attr("email"))
            }, r.src = "../../images/ico_close.png?t=" + +(new Date)
        }
    }
})();
(function () {
    "use strict";
    var e = window.qh360cp,
		t = window.jQuery,
		n = {
		    init: function () {
		        var e = t("#q_360cp_console_debug").length > 0;
		        if (!e) {
		            var r = t.support.shrinkWrapBlocks,
						i = r ? "absolute" : "fixed",
						s = t("<div>").attr({
						    id: "q_360cp_console_debug"
						}).css({
						    position: i,
						    left: 5,
						    width: "360",
						    border: "1px solid #333",
						    "font-size": 12,
						    "z-index": 999999,
						    background: "#fff"
						});
		            if (r) {
		                var o = document.documentElement.clientHeight - 315;
		                s.css("top", o + t(window).scrollTop()), t(window).on("scroll", function () {
		                    clearTimeout(n._ttl), n._ttl = setTimeout(function () {
		                        t("#q_360cp_console_debug").animate({
		                            top: t(window).scrollTop() + o
		                        }, 400)
		                    }, 60)
		                })
		            } else s.css("bottom", 5);
		            s.html('<div onclick="console.clear();" style="background:#ccc;height:28px;padding-left:10px;line-height:30px;">console</div><ul style="width:360px;height:249px;overflow:auto;overflow-x:hidden;;" id="q_360cp_console_debug_list"></ul><input onkeyup="console.cmd(event);" style="width:356px;height:24px;color:#999;" />'), t("body").append(s)
		        }
		    },
		    _get_debug: function () {
		        var e = document.location.hash.indexOf("cmd_debug") >= 0;
		        return n.debug = e, e && n.init(), e
		    },
		    _create_code: function (e, t) {
		        var n = "#fff",
					r = "#666";
		        return t = (t || "log") + "\uff1a", t.indexOf("warn") >= 0 && (n = "#FFFFC8"), t.indexOf("error") >= 0 && (n = "#FFEBEB", r = "#FF2775"), '<li style="height:24px;line-height:26px;border-bottom:1px solid #ccc;color:' + r + ";padding-left:5px;background-color:" + n + ';">' + e + "</li>"
		    },
		    _append: function (e) {
		        if (n.debug || n._get_debug()) n.init(), t("#q_360cp_console_debug_list").append(e)
		    },
		    log: function () {
		        arguments.length > 0 && n._append(n._create_code(t(arguments).toArray().join(" ")))
		    },
		    error: function () {
		        arguments.length > 0 && n._append(n._create_code(t(arguments).toArray().join(" "), "error"))
		    },
		    warn: function () {
		        arguments.length > 0 && n._append(n._create_code(t(arguments).toArray().join(" "), "warn"))
		    },
		    dir: function (e) {
		        var t, r, i = "";
		        if ("object array function".indexOf(typeof e) >= 0) {
		            for (t in e) r = e[t], "object array function".indexOf(typeof e[t]) >= 0 && (r = typeof e[t]), i += n._create_code(t + ' <em style="color:#ccc;">>>></em> ' + r);
		            n._append(i)
		        } else n._append(n._create_code("\u6ca1\u6709\u5b50\u5bf9\u8c61"))
		    },
		    cmd: function (e) {
		        var r = t.trim(t("#q_360cp_console_debug input").val());
		        if (!!r && (e.keyCode || e.which) == 13) {
		            n.log('<em style="color:blue;">>>></em>' + r);
		            try {
		                var i = window.eval(r);
		                "object array function".indexOf(typeof i) >= 0 ? n.dir(i) : r != "console.clear()" && n.log('<em style="color:#ccc;">return>>></em> ' + i)
		            } catch (s) {
		                n.error(s)
		            }
		            t("#q_360cp_console_debug input").val("")
		        }
		    },
		    clear: function () {
		        t("#q_360cp_console_debug_list").html("")
		    }
		};
    window.console || (window.console = n), e.console = n
})();
(function () {
    "use strict";

    function i(e) {
        return p(c(m(e)))
    }
    function s(e) {
        return d(c(m(e)))
    }
    function o(e, t) {
        return v(c(m(e)), t)
    }
    function u(e, t) {
        return p(h(m(e), m(t)))
    }
    function a(e, t) {
        return d(h(m(e), m(t)))
    }
    function f(e, t, n) {
        return v(h(m(e), m(t)), n)
    }
    function l() {
        return i("abc").toLowerCase() == "900150983cd24fb0d6963f7d28e17f72"
    }
    function c(e) {
        return w(E(b(e), e.length * 8))
    }
    function h(e, t) {
        var n = b(e);
        n.length > 16 && (n = E(n, e.length * 8));
        var r = Array(16),
			i = Array(16);
        for (var s = 0; s < 16; s++) r[s] = n[s] ^ 909522486, i[s] = n[s] ^ 1549556828;
        var o = E(r.concat(b(t)), 512 + t.length * 8);
        return w(E(i.concat(o), 640))
    }
    function p(e) {
        try {
            n
        } catch (t) {
            n = 0
        }
        var r = n ? "0123456789ABCDEF" : "0123456789abcdef",
			i = "",
			s;
        for (var o = 0; o < e.length; o++) s = e.charCodeAt(o), i += r.charAt(s >>> 4 & 15) + r.charAt(s & 15);
        return i
    }
    function d(e) {
        try {
            r
        } catch (t) {
            r = ""
        }
        var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
			i = "",
			s = e.length;
        for (var o = 0; o < s; o += 3) {
            var u = e.charCodeAt(o) << 16 | (o + 1 < s ? e.charCodeAt(o + 1) << 8 : 0) | (o + 2 < s ? e.charCodeAt(o + 2) : 0);
            for (var a = 0; a < 4; a++) o * 8 + a * 6 > e.length * 8 ? i += r : i += n.charAt(u >>> 6 * (3 - a) & 63)
        }
        return i
    }
    function v(e, t) {
        var n = t.length,
			r, i, s, o, u, a = Array(Math.ceil(e.length / 2));
        for (r = 0; r < a.length; r++) a[r] = e.charCodeAt(r * 2) << 8 | e.charCodeAt(r * 2 + 1);
        var f = Math.ceil(e.length * 8 / (Math.log(t.length) / Math.log(2))),
			l = Array(f);
        for (i = 0; i < f; i++) {
            u = Array(), o = 0;
            for (r = 0; r < a.length; r++) {
                o = (o << 16) + a[r], s = Math.floor(o / n), o -= s * n;
                if (u.length > 0 || s > 0) u[u.length] = s
            }
            l[i] = o, a = u
        }
        var c = "";
        for (r = l.length - 1; r >= 0; r--) c += t.charAt(l[r]);
        return c
    }
    function m(e) {
        var t = "",
			n = -1,
			r, i;
        while (++n < e.length) r = e.charCodeAt(n), i = n + 1 < e.length ? e.charCodeAt(n + 1) : 0, 55296 <= r && r <= 56319 && 56320 <= i && i <= 57343 && (r = 65536 + ((r & 1023) << 10) + (i & 1023), n++), r <= 127 ? t += String.fromCharCode(r) : r <= 2047 ? t += String.fromCharCode(192 | r >>> 6 & 31, 128 | r & 63) : r <= 65535 ? t += String.fromCharCode(224 | r >>> 12 & 15, 128 | r >>> 6 & 63, 128 | r & 63) : r <= 2097151 && (t += String.fromCharCode(240 | r >>> 18 & 7, 128 | r >>> 12 & 63, 128 | r >>> 6 & 63, 128 | r & 63));
        return t
    }
    function g(e) {
        var t = "";
        for (var n = 0; n < e.length; n++) t += String.fromCharCode(e.charCodeAt(n) & 255, e.charCodeAt(n) >>> 8 & 255);
        return t
    }
    function y(e) {
        var t = "";
        for (var n = 0; n < e.length; n++) t += String.fromCharCode(e.charCodeAt(n) >>> 8 & 255, e.charCodeAt(n) & 255);
        return t
    }
    function b(e) {
        var t = Array(e.length >> 2);
        for (var n = 0; n < t.length; n++) t[n] = 0;
        for (var n = 0; n < e.length * 8; n += 8) t[n >> 5] |= (e.charCodeAt(n / 8) & 255) << n % 32;
        return t
    }
    function w(e) {
        var t = "";
        for (var n = 0; n < e.length * 32; n += 8) t += String.fromCharCode(e[n >> 5] >>> n % 32 & 255);
        return t
    }
    function E(e, t) {
        e[t >> 5] |= 128 << t % 32, e[(t + 64 >>> 9 << 4) + 14] = t;
        var n = 1732584193,
			r = -271733879,
			i = -1732584194,
			s = 271733878;
        for (var o = 0; o < e.length; o += 16) {
            var u = n,
				a = r,
				f = i,
				l = s;
            n = x(n, r, i, s, e[o + 0], 7, parseInt("0xd76aa478")), s = x(s, n, r, i, e[o + 1], 12, parseInt("0xe8c7b756")), i = x(i, s, n, r, e[o + 2], 17, parseInt("0x242070db")), r = x(r, i, s, n, e[o + 3], 22, parseInt("0xc1bdceee")), n = x(n, r, i, s, e[o + 4], 7, parseInt("0xf57c0faf")), s = x(s, n, r, i, e[o + 5], 12, parseInt("0x4787c62a")), i = x(i, s, n, r, e[o + 6], 17, parseInt("0xa8304613")), r = x(r, i, s, n, e[o + 7], 22, parseInt("0xfd469501")), n = x(n, r, i, s, e[o + 8], 7, parseInt("0x698098d8")), s = x(s, n, r, i, e[o + 9], 12, parseInt("0x8b44f7af")), i = x(i, s, n, r, e[o + 10], 17, parseInt("0xffff5bb1")), r = x(r, i, s, n, e[o + 11], 22, parseInt("0x895cd7be")), n = x(n, r, i, s, e[o + 12], 7, parseInt("0x6b901122")), s = x(s, n, r, i, e[o + 13], 12, parseInt("0xfd987193")), i = x(i, s, n, r, e[o + 14], 17, parseInt("0xa679438e")), r = x(r, i, s, n, e[o + 15], 22, parseInt("0x49b40821")), n = T(n, r, i, s, e[o + 1], 5, parseInt("0xf61e2562")), s = T(s, n, r, i, e[o + 6], 9, parseInt("0xc040b340")), i = T(i, s, n, r, e[o + 11], 14, parseInt("0x265e5a51")), r = T(r, i, s, n, e[o + 0], 20, parseInt("0xe9b6c7aa")), n = T(n, r, i, s, e[o + 5], 5, parseInt("0xd62f105d")), s = T(s, n, r, i, e[o + 10], 9, parseInt("0x02441453")), i = T(i, s, n, r, e[o + 15], 14, parseInt("0xd8a1e681")), r = T(r, i, s, n, e[o + 4], 20, parseInt("0xe7d3fbc8")), n = T(n, r, i, s, e[o + 9], 5, parseInt("0x21e1cde6")), s = T(s, n, r, i, e[o + 14], 9, parseInt("0xc33707d6")), i = T(i, s, n, r, e[o + 3], 14, parseInt("0xf4d50d87")), r = T(r, i, s, n, e[o + 8], 20, parseInt("0x455a14ed")), n = T(n, r, i, s, e[o + 13], 5, parseInt("0xa9e3e905")), s = T(s, n, r, i, e[o + 2], 9, parseInt("0xfcefa3f8")), i = T(i, s, n, r, e[o + 7], 14, parseInt("0x676f02d9")), r = T(r, i, s, n, e[o + 12], 20, parseInt("0x8d2a4c8a")), n = N(n, r, i, s, e[o + 5], 4, parseInt("0xfffa3942")), s = N(s, n, r, i, e[o + 8], 11, parseInt("0x8771f681")), i = N(i, s, n, r, e[o + 11], 16, parseInt("0x6d9d6122")), r = N(r, i, s, n, e[o + 14], 23, parseInt("0xfde5380c")), n = N(n, r, i, s, e[o + 1], 4, parseInt("0xa4beea44")), s = N(s, n, r, i, e[o + 4], 11, parseInt("0x4bdecfa9")), i = N(i, s, n, r, e[o + 7], 16, parseInt("0xf6bb4b60")), r = N(r, i, s, n, e[o + 10], 23, parseInt("0xbebfbc70")), n = N(n, r, i, s, e[o + 13], 4, parseInt("0x289b7ec6")), s = N(s, n, r, i, e[o + 0], 11, parseInt("0xeaa127fa")), i = N(i, s, n, r, e[o + 3], 16, parseInt("0xd4ef3085")), r = N(r, i, s, n, e[o + 6], 23, parseInt("0x04881d05")), n = N(n, r, i, s, e[o + 9], 4, parseInt("0xd9d4d039")), s = N(s, n, r, i, e[o + 12], 11, parseInt("0xe6db99e5")), i = N(i, s, n, r, e[o + 15], 16, parseInt("0x1fa27cf8")), r = N(r, i, s, n, e[o + 2], 23, parseInt("0xc4ac5665")), n = C(n, r, i, s, e[o + 0], 6, parseInt("0xf4292244")), s = C(s, n, r, i, e[o + 7], 10, parseInt("0x432aff97")), i = C(i, s, n, r, e[o + 14], 15, parseInt("0xab9423a7")), r = C(r, i, s, n, e[o + 5], 21, parseInt("0xfc93a039")), n = C(n, r, i, s, e[o + 12], 6, parseInt("0x655b59c3")), s = C(s, n, r, i, e[o + 3], 10, parseInt("0x8f0ccc92")), i = C(i, s, n, r, e[o + 10], 15, parseInt("0xffeff47d")), r = C(r, i, s, n, e[o + 1], 21, parseInt("0x85845dd1")), n = C(n, r, i, s, e[o + 8], 6, parseInt("0x6fa87e4f")), s = C(s, n, r, i, e[o + 15], 10, parseInt("0xfe2ce6e0")), i = C(i, s, n, r, e[o + 6], 15, parseInt("0xa3014314")), r = C(r, i, s, n, e[o + 13], 21, parseInt("0x4e0811a1")), n = C(n, r, i, s, e[o + 4], 6, parseInt("0xf7537e82")), s = C(s, n, r, i, e[o + 11], 10, parseInt("0xbd3af235")), i = C(i, s, n, r, e[o + 2], 15, parseInt("0x2ad7d2bb")), r = C(r, i, s, n, e[o + 9], 21, parseInt("0xeb86d391")), n = k(n, u), r = k(r, a), i = k(i, f), s = k(s, l)
        }
        return Array(n, r, i, s)
    }
    function S(e, t, n, r, i, s) {
        return k(L(k(k(t, e), k(r, s)), i), n)
    }
    function x(e, t, n, r, i, s, o) {
        return S(t & n | ~t & r, e, t, i, s, o)
    }
    function T(e, t, n, r, i, s, o) {
        return S(t & r | n & ~r, e, t, i, s, o)
    }
    function N(e, t, n, r, i, s, o) {
        return S(t ^ n ^ r, e, t, i, s, o)
    }
    function C(e, t, n, r, i, s, o) {
        return S(n ^ (t | ~r), e, t, i, s, o)
    }
    function k(e, t) {
        var n = (e & 65535) + (t & 65535),
			r = (e >> 16) + (t >> 16) + (n >> 16);
        return r << 16 | n & 65535
    }
    function L(e, t) {
        return e << t | e >>> 32 - t
    }
    var e = window.qh360cp,
		t = window.jQuery;
    e.sec = e.sec || {};
    var n = 0,
		r = "";
    e.sec.hex_md5 = function (e) {
        return i(e)
    }, e.sec.b64_md5 = function (e) {
        return s(e)
    }, e.sec.str_md5 = function (e) {
        return str_md5(e)
    }, e.sec.hex_hmac_md5 = function (e, t) {
        return u(e, t)
    }, e.sec.b64_hmac_md5 = function (e, t) {
        return a(e, t)
    }, e.sec.str_hmac_md5 = function (e, t) {
        return str_hmac_md5(e, t)
    }, e.sec.md5_test_abc = function () {
        return i("abc") == "900150983cd24fb0d6963f7d28e17f72"
    }, e.sec.md5_360qianbao = function (e) {
        function t(e, t) {
            return e << t | e >>> 32 - t
        }
        function n(e, t) {
            var n, r, i, s, o;
            return i = e & 2147483648, s = t & 2147483648, n = e & 1073741824, r = t & 1073741824, o = (e & 1073741823) + (t & 1073741823), n & r ? o ^ 2147483648 ^ i ^ s : n | r ? o & 1073741824 ? o ^ 3221225472 ^ i ^ s : o ^ 1073741824 ^ i ^ s : o ^ i ^ s
        }
        function r(e, t, n) {
            return e & t | ~e & n
        }
        function i(e, t, n) {
            return e & n | t & ~n
        }
        function s(e, t, n) {
            return e ^ t ^ n
        }
        function o(e, t, n) {
            return t ^ (e | ~n)
        }
        function u(e, i, s, o, u, a, f) {
            return e = n(e, n(n(r(i, s, o), u), f)), n(t(e, a), i)
        }
        function a(e, r, s, o, u, a, f) {
            return e = n(e, n(n(i(r, s, o), u), f)), n(t(e, a), r)
        }
        function f(e, r, i, o, u, a, f) {
            return e = n(e, n(n(s(r, i, o), u), f)), n(t(e, a), r)
        }
        function l(e, r, i, s, u, a, f) {
            return e = n(e, n(n(o(r, i, s), u), f)), n(t(e, a), r)
        }
        function c(e) {
            var t, n = e.length,
				r = n + 8,
				i = (r - r % 64) / 64,
				s = (i + 1) * 16,
				o = Array(s - 1),
				u = 0,
				a = 0;
            while (a < n) t = (a - a % 4) / 4, u = a % 4 * 8, o[t] = o[t] | e.charCodeAt(a) << u, a++;
            return t = (a - a % 4) / 4, u = a % 4 * 8, o[t] = o[t] | 128 << u, o[s - 2] = n << 3, o[s - 1] = n >>> 29, o
        }
        function h(e) {
            var t = "",
				n = "",
				r, i;
            for (i = 0; i <= 3; i++) r = e >>> i * 8 & 255, n = "0" + r.toString(16), t += n.substr(n.length - 2, 2);
            return t
        }
        var p = Array(),
			d, v, m, g, y, b, w, E, S, x = 7,
			T = 12,
			N = 17,
			C = 22,
			k = 5,
			L = 9,
			A = 14,
			O = 20,
			M = 4,
			_ = 11,
			D = 16,
			P = 23,
			H = 6,
			B = 10,
			j = 15,
			F = 21;
        p = c(e), b = 1732584193, w = 4023233417, E = 2562383102, S = 271733878;
        for (d = 0; d < p.length; d += 16) v = b, m = w, g = E, y = S, b = u(b, w, E, S, p[d + 0], x, 3614090360), S = u(S, b, w, E, p[d + 1], T, 3905402710), E = u(E, S, b, w, p[d + 2], N, 606105819), w = u(w, E, S, b, p[d + 3], C, 3250441966), b = u(b, w, E, S, p[d + 4], x, 4118548399), S = u(S, b, w, E, p[d + 5], T, 1200080426), E = u(E, S, b, w, p[d + 6], N, 2821735955), w = u(w, E, S, b, p[d + 7], C, 4249261313), b = u(b, w, E, S, p[d + 8], x, 1770035416), S = u(S, b, w, E, p[d + 9], T, 2336552879), E = u(E, S, b, w, p[d + 10], N, 4294925233), w = u(w, E, S, b, p[d + 11], C, 2304563134), b = u(b, w, E, S, p[d + 12], x, 1804603682), S = u(S, b, w, E, p[d + 13], T, 4254626195), E = u(E, S, b, w, p[d + 14], N, 2792965006), w = u(w, E, S, b, p[d + 15], C, 1236535329), b = a(b, w, E, S, p[d + 1], k, 4129170786), S = a(S, b, w, E, p[d + 6], L, 3225465664), E = a(E, S, b, w, p[d + 11], A, 643717713), w = a(w, E, S, b, p[d + 0], O, 3921069994), b = a(b, w, E, S, p[d + 5], k, 3593408605), S = a(S, b, w, E, p[d + 10], L, 38016083), E = a(E, S, b, w, p[d + 15], A, 3634488961), w = a(w, E, S, b, p[d + 4], O, 3889429448), b = a(b, w, E, S, p[d + 9], k, 568446438), S = a(S, b, w, E, p[d + 14], L, 3275163606), E = a(E, S, b, w, p[d + 3], A, 4107603335), w = a(w, E, S, b, p[d + 8], O, 1163531501), b = a(b, w, E, S, p[d + 13], k, 2850285829), S = a(S, b, w, E, p[d + 2], L, 4243563512), E = a(E, S, b, w, p[d + 7], A, 1735328473), w = a(w, E, S, b, p[d + 12], O, 2368359562), b = f(b, w, E, S, p[d + 5], M, 4294588738), S = f(S, b, w, E, p[d + 8], _, 2272392833), E = f(E, S, b, w, p[d + 11], D, 1839030562), w = f(w, E, S, b, p[d + 14], P, 4259657740), b = f(b, w, E, S, p[d + 1], M, 2763975236), S = f(S, b, w, E, p[d + 4], _, 1272893353), E = f(E, S, b, w, p[d + 7], D, 4139469664), w = f(w, E, S, b, p[d + 10], P, 3200236656), b = f(b, w, E, S, p[d + 13], M, 681279174), S = f(S, b, w, E, p[d + 0], _, 3936430074), E = f(E, S, b, w, p[d + 3], D, 3572445317), w = f(w, E, S, b, p[d + 6], P, 76029189), b = f(b, w, E, S, p[d + 9], M, 3654602809), S = f(S, b, w, E, p[d + 12], _, 3873151461), E = f(E, S, b, w, p[d + 15], D, 530742520), w = f(w, E, S, b, p[d + 2], P, 3299628645), b = l(b, w, E, S, p[d + 0], H, 4096336452), S = l(S, b, w, E, p[d + 7], B, 1126891415), E = l(E, S, b, w, p[d + 14], j, 2878612391), w = l(w, E, S, b, p[d + 5], F, 4237533241), b = l(b, w, E, S, p[d + 12], H, 1700485571), S = l(S, b, w, E, p[d + 3], B, 2399980690), E = l(E, S, b, w, p[d + 10], j, 4293915773), w = l(w, E, S, b, p[d + 1], F, 2240044497), b = l(b, w, E, S, p[d + 8], H, 1873313359), S = l(S, b, w, E, p[d + 15], B, 4264355552), E = l(E, S, b, w, p[d + 6], j, 2734768916), w = l(w, E, S, b, p[d + 13], F, 1309151649), b = l(b, w, E, S, p[d + 4], H, 4149444226), S = l(S, b, w, E, p[d + 11], B, 3174756917), E = l(E, S, b, w, p[d + 2], j, 718787259), w = l(w, E, S, b, p[d + 9], F, 3951481745), b = n(b, v), w = n(w, m), E = n(E, g), S = n(S, y);
        var I = h(b) + h(w) + h(E) + h(S);
        return I.toLowerCase()
    }, e.sec.md5 = function (t, n) {
        return n ? e.sec.md5_360qianbao(t) : e.sec.hex_md5(t)
    }
})();
(function () {
    "use strict";
    var e = window.qh360cp,
		t = window.jQuery;
    e.sec = e.sec || {}, e.sec.short_url = function (t) {
        t = e.sec.md5(t);
        var n = [],
			r, i, s, o = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
        o.push("0", "1", "2", "3", "4", "5", "6", "7", "8", "9"), o.push("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
        for (var u = 0; u < 4; u++) {
            r = 1073741823 & parseInt("0x" + t.substring(u * 8, 8 * (u + 1)), 16), i = "";
            for (var a = 0; a < 6; a++) s = 61 & r, i += o[s], r >>= 5;
            n.push(i)
        }
        return n
    }
})();
this.JSON || (this.JSON = {}), function () {
    function f(e) {
        return e < 10 ? "0" + e : e
    }
    function quote(e) {
        return escapable.lastIndex = 0, escapable.test(e) ? '"' + e.replace(escapable, function (e) {
            var t = meta[e];
            return typeof t == "string" ? t : "\\u" + ("0000" + e.charCodeAt(0).toString(16)).slice(-4)
        }) + '"' : '"' + e + '"'
    }
    function str(e, t) {
        var n, r, i, s, o = gap,
			u, a = t[e];
        a && typeof a == "object" && typeof a.toJSON == "function" && (a = a.toJSON(e)), typeof rep == "function" && (a = rep.call(t, e, a));
        switch (typeof a) {
            case "string":
                return quote(a);
            case "number":
                return isFinite(a) ? String(a) : "null";
            case "boolean":
            case "null":
                return String(a);
            case "object":
                if (!a) return "null";
                gap += indent, u = [];
                if (Object.prototype.toString.apply(a) === "[object Array]") {
                    s = a.length;
                    for (n = 0; n < s; n += 1) u[n] = str(n, a) || "null";
                    return i = u.length === 0 ? "[]" : gap ? "[\n" + gap + u.join(",\n" + gap) + "\n" + o + "]" : "[" + u.join(",") + "]", gap = o, i
                }
                if (rep && typeof rep == "object") {
                    s = rep.length;
                    for (n = 0; n < s; n += 1) r = rep[n], typeof r == "string" && (i = str(r, a), i && u.push(quote(r) + (gap ? ": " : ":") + i))
                } else for (r in a) Object.hasOwnProperty.call(a, r) && (i = str(r, a), i && u.push(quote(r) + (gap ? ": " : ":") + i));
                return i = u.length === 0 ? "{}" : gap ? "{\n" + gap + u.join(",\n" + gap) + "\n" + o + "}" : "{" + u.join(",") + "}", gap = o, i
        }
    }
    typeof Date.prototype.toJSON != "function" && (Date.prototype.toJSON = function (e) {
        return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + f(this.getUTCMonth() + 1) + "-" + f(this.getUTCDate()) + "T" + f(this.getUTCHours()) + ":" + f(this.getUTCMinutes()) + ":" + f(this.getUTCSeconds()) + "Z" : null
    }, String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function (e) {
        return this.valueOf()
    });
    var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
		escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
		gap, indent, meta = {
		    "\b": "\\b",
		    "	": "\\t",
		    "\n": "\\n",
		    "\f": "\\f",
		    "\r": "\\r",
		    '"': '\\"',
		    "\\": "\\\\"
		},
		rep;
    typeof JSON.stringify != "function" && (JSON.stringify = function (e, t, n) {
        var r;
        gap = "", indent = "";
        if (typeof n == "number") for (r = 0; r < n; r += 1) indent += " ";
        else typeof n == "string" && (indent = n);
        rep = t;
        if (!t || typeof t == "function" || typeof t == "object" && typeof t.length == "number") return str("", {
            "": e
        });
        throw new Error("JSON.stringify")
    }), typeof JSON.parse != "function" && (JSON.parse = function (text, reviver) {
        function walk(e, t) {
            var n, r, i = e[t];
            if (i && typeof i == "object") for (n in i) Object.hasOwnProperty.call(i, n) && (r = walk(i, n), r !== undefined ? i[n] = r : delete i[n]);
            return reviver.call(e, t, i)
        }
        var j;
        text = String(text), cx.lastIndex = 0, cx.test(text) && (text = text.replace(cx, function (e) {
            return "\\u" + ("0000" + e.charCodeAt(0).toString(16)).slice(-4)
        }));
        if (/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]").replace(/(?:^|:|,)(?:\s*\[)+/g, ""))) return j = eval("(" + text + ")"), typeof reviver == "function" ? walk({
            "": j
        }, "") : j;
        throw new SyntaxError("JSON.parse")
    })
}();
(function (e) {
    function o() {
        try {
            return r in e && e[r]
        } catch (t) {
            return !1
        }
    }
    var t = {},
		n = e.document,
		r = "localStorage",
		i = "__storejs__",
		s;
    t.disabled = !1, t.set = function (e, t) { }, t.get = function (e) { }, t.remove = function (e) { }, t.clear = function () { }, t.transact = function (e, n, r) {
        var i = t.get(e);
        r == null && (r = n, n = null), typeof i == "undefined" && (i = n || {}), r(i), t.set(e, i)
    }, t.getAll = function () { }, t.serialize = function (e) {
        return JSON.stringify(e)
    }, t.deserialize = function (e) {
        if (typeof e != "string") return undefined;
        try {
            return JSON.parse(e)
        } catch (t) {
            return e || undefined
        }
    };
    if (o()) s = e[r], t.set = function (e, n) {
        return n === undefined ? t.remove(e) : (s.setItem(e, t.serialize(n)), n)
    }, t.get = function (e) {
        return t.deserialize(s.getItem(e))
    }, t.remove = function (e) {
        s.removeItem(e)
    }, t.clear = function () {
        s.clear()
    }, t.getAll = function () {
        var e = {};
        for (var n = 0; n < s.length; ++n) {
            var r = s.key(n);
            e[r] = t.get(r)
        }
        return e
    };
    else if (n.documentElement.addBehavior) {
        var u, a;
        try {
            a = new ActiveXObject("htmlfile"), a.open(), a.write('<script>document.w=window</script><iframe src="/favicon.ico"></iframe>'), a.close(), u = a.w.frames[0].document, s = u.createElement("div")
        } catch (f) {
            s = n.createElement("div"), u = n.body
        }
        function l(e) {
            return function () {
                var n = Array.prototype.slice.call(arguments, 0);
                n.unshift(s), u.appendChild(s), s.addBehavior("#default#userData"), s.load(r);
                var i = e.apply(t, n);
                return u.removeChild(s), i
            }
        }
        var c = new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]", "g");

        function h(e) {
            return e.replace(c, "___")
        }
        t.set = l(function (e, n, i) {
            return n = h(n), i === undefined ? t.remove(n) : (e.setAttribute(n, t.serialize(i)), e.save(r), i)
        }), t.get = l(function (e, n) {
            return n = h(n), t.deserialize(e.getAttribute(n))
        }), t.remove = l(function (e, t) {
            t = h(t), e.removeAttribute(t), e.save(r)
        }), t.clear = l(function (e) {
            var t = e.XMLDocument.documentElement.attributes;
            e.load(r);
            for (var n = 0, i; i = t[n]; n++) e.removeAttribute(i.name);
            e.save(r)
        }), t.getAll = l(function (e) {
            var n = e.XMLDocument.documentElement.attributes,
				r = {};
            for (var i = 0, s; s = n[i]; ++i) {
                var o = h(s.name);
                r[s.name] = t.deserialize(e.getAttribute(o))
            }
            return r
        })
    }
    try {
        t.set(i, i), t.get(i) != i && (t.disabled = !0), t.remove(i)
    } catch (f) {
        t.disabled = !0
    }
    t.enabled = !t.disabled, typeof module != "undefined" && module.exports ? module.exports = t : typeof define == "function" && define.amd ? define(t) : e.Q.store = t
})(this.window || global);
(function () {
    "use strict";
    var e = window.jQuery,
		t = window.qh360cp,
		n = window._,
		r = {
		    mobile: function (r) {
		        var i = 0,
					s = "",
					o = "";
		        n.isObject(r) || (r = {
		            content: r + ""
		        }), s = {
		            1: "\u8bf7\u8f93\u516511\u4f4d\u624b\u673a\u53f7\u7801",
		            2: "\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\u7801"
		        }, n.isObject(r.msg) && e.extend(s, r.msg), o = t.string.dbc_to_sbc(r.content).replace(/\D/g, "");
		        var u = /^1[^01269]\d{9}$/gi;
		        o ? u.test(o) || (i = 2) : i = 1;
		        if (n.isUndefined(r.is_format) || r.is_format) o = o.replace(/((^\d{3})|(\d{4}))(?=\d)/g, "$1 ");
		        return {
		            code: i,
		            msg: s[i + ""] || "",
		            val: e.trim(o)
		        }
		    },
		    paypass: function (t) {
		        n.isObject(t) || (t = {
		            content: t + ""
		        });
		        var r = t.content,
					i = 0,
					s;
		        s = {
		            1: "\u8bf7\u8f93\u51656-16\u4f4d\u652f\u4ed8\u5bc6\u7801\uff0c\u81f3\u5c11\u5305\u542b\u5b57\u6bcd\u548c\u6570\u5b57",
		            2: "\u652f\u4ed8\u5bc6\u7801\u81f3\u5c11\u8981\u5305\u542b\u4e00\u4e2a\u5b57\u6bcd",
		            3: "\u652f\u4ed8\u5bc6\u7801\u81f3\u5c11\u8981\u5305\u542b\u4e00\u4e2a\u6570\u5b57",
		            4: "\u652f\u4ed8\u5bc6\u7801\u957f\u5ea6\u9700\u57286-16\u4f4d\u4e4b\u95f4",
		            5: "\u652f\u4ed8\u5bc6\u7801\u4e0d\u80fd\u4e3a\u4e2d\u6587\u7b49\u975e\u82f1\u6587\u5b57\u7b26"
		        }, t.level_txt = t.level_txt || ["\u5f31", "\u4e00\u822c", "\u666e\u901a", "\u5f3a"], n.isObject(t.msg) && e.extend(s, t.msg);
		        var o = r.replace(/[^\x00-\xff]/gi, ""),
					u = r.replace(/[a-z]/gi, ""),
					a = r.replace(/[0-9]/g, ""),
					f = r.replace(/^a-z0-9/gi, ""),
					l = r.replace(/[A-Z]/g, ""),
					c = 1,
					h = "",
					p = r.length;
		        if (r == o) if (r) {
		            u == r && (i = 2), a == r && (i = 3);
		            if (p < 6 || p > 16) i = 4;
		            p > 8 && c++, f != r && (c += 2), l != r && (c += 2)
		        } else i = 1;
		        else i = 5;
		        return i === 0 && (h = c <= 3 ? t.level_txt[c - 1] : t.level_txt[3]), {
		            code: i,
		            msg: s[i + ""] || "",
		            val: r,
		            level: h
		        }
		    },
		    realname: function (t) {
		        var r = 0,
					i = "",
					s = "";
		        n.isObject(t) || (t = {
		            content: t + ""
		        }), i = {
		            1: "\u8bf7\u8f93\u5165\u771f\u5b9e\u59d3\u540d",
		            2: "\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u771f\u5b9e\u59d3\u540d"
		        }, n.isObject(t.msg) && e.extend(i, t.msg), s = t.content.toLowerCase().replace(/[^\u4e00-\u9fa5\.\u3002\u00b7]/g, "");
		        var o = /^[\u4e00-\u9fa5]{2,}(|[\.\u3002\u00b7][\u4e00-\u9fa5]+)$/gi;
		        return s ? o.test(s) || (r = 2) : r = 1, {
		            code: r,
		            msg: i[r + ""] || "",
		            val: s
		        }
		    },
		    ident: function (r) {
		        var i = 0,
					s = "",
					o = "";
		        n.isObject(r) || (r = {
		            content: r + ""
		        }), s = {
		            1: "\u8bf7\u8f93\u516518\u4f4d\u8eab\u4efd\u8bc1\u53f7\u7801",
		            2: "\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u8eab\u4efd\u8bc1\u53f7\u7801",
		            3: "\u8bf7\u8f93\u5165\u771f\u5b9e\u8eab\u4efd\u8bc1\u53f7",
		            4: "\u672a\u6ee118\u5468\u5c81"
		        }, n.isObject(r.msg) && e.extend(s, r.msg);
		        var u = function (e) {
		            var t = 0,
                        n = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2],
                        r = [1, 0, "x", 9, 8, 7, 6, 5, 4, 3, 2];
		            for (var i = 0; i < 17; i++) t += e[i] * n[i];
		            return r[t % 11] == e[17]
		        };
		        o = t.string.dbc_to_sbc(r.content).toLowerCase().replace(/[^\dx]/g, "");
		        var a = /^\d{17}[\dx]$/gi;
		        if (o) if (a.test(o)) {
		            if (!u(o)) i = 3;
		            else if (r.is_18) {
		                var f = new Date,
							l = f.getFullYear() - o.substring(6, 10),
							c = f.getMonth() + 1 - o.substring(10, 12),
							h = f.getDate() - o.substring(12, 14);
		                l < 18 ? i = 4 : l == 18 && (c < 0 ? i = 4 : c == 0 && h < 0 && (i = 4))
		            }
		        } else i = 2;
		        else i = 1;
		        if (n.isUndefined(r.is_format) || r.is_format) o = o.replace(/((^\d{6})|(\d{8}))(?=\d)/g, "$1 ");
		        return {
		            code: i,
		            msg: s[i + ""] || "",
		            val: e.trim(o)
		        }
		    }
		};
    t.validation = r
})();
(function () {
    "use strict";
    var e = window.qh360cp,
		t = window.jQuery;
    e.lightbox = e.lightbox || {}, e.lightBox = e.lightbox, e.lightbox.show = function (t) {
        return new e.lightbox._core(t)
    }, e.lightbox.close = function (e) {
        e = e || "body", t(e + ">div[name=pop_names_cp360_com" + e.replace(/[^a-z_0-9]/gi, "_") + "]").remove()
    }, e.lightbox._core = function (e) {
        this.box = "body", this.is_mask = !0, this.opacity = 30, this.mask_color = "#000", this.offset_box = undefined, this.is_center = !0, this.is_fixed = !0, this.is_resize = !0, this.esc = !0, this.on_focus = "", this.is_close_other = 1, this.left = 0, this.top = 0, this.html = "", this.cancel_callback = t.noop, this.confirm_callback = t.noop, this.times = "0", this.cancel_sel = "", this.confirm_sel = "", this.drag_sel = "", this.is_drag = !0, this._mask_id = "", this.mask_ele = t(), this._box_width = 0, this._box_height = 0, this._main_id = "", this.main_ele = t(), this._names = "", this._scroll_t = 0, this.callback = t.noop, this.is_conver = !1, this._init(e), this._show()
    }, e.lightbox._core.prototype = {
        constructor: e.lightbox._core,
        _init: function (e) {
            var n, r, i, s;
            n = e || {}, t.extend(this, n), r = +(new Date), i = (Math.random() + "").replace(".", "_"), this._mask_id = "pop_mask_" + r + i, this._main_id = "pop_main_" + r + i, this.is_mask && (this._names = "pop_names_cp360_com" + this.box.replace(/[^a-z0-9]/gi, "_"), this.is_close_other === 1 ? t("div[name='" + this._names + "']").remove() : this.is_close_other === 2 && t("div[name='" + this._names + "']").hide())
        },
        _show: function () {
            var e, n, r, i, s, o, u, a;
            e = this;
            if (!this.is_mask && !!this.offset_box && t(this.offset_box).data("isShow") == "1") return;
            this.is_close_other && this._close(), this._get_box_width_height.call(this), this._create_ele.call(this), t("#" + this._main_id + ">*").eq(0).css("position", "relative"), u = t("#" + this._main_id);
            if (this.is_center) o = this._get_top_left(u.width(), u.height());
            else if (!this.offset_box) o = [this.top, this.left];
            else {
                s = t(this.offset_box), r = t(this.box), n = s.offset(), i = r.offset();
                var f = n.top - i.top + this.top + s.height(),
					l = n.left - i.left + this.left + s.width();
                if (this.is_conver) {
                    var c = document.documentElement.scrollTop + document.documentElement.clientHeight;
                    f + u.height() > c && (f = f - u.height() - s.height() - this.top)
                }
                o = [f, l], this.is_mask || s.data("isShow", "1")
            }
            u.css({
                top: o[0],
                left: o[1]
            }).fadeIn(0, function () {
                e._on_callback.call(e);
                if (e.on_focus) if (t.isFunction(e.on_focus)) e.on_focus.call(e);
                else {
                    var n = typeof e.on_focus == "string" && e.on_focus.split("|");
                    n.length === 2 ? setTimeout(function () {
                        var e = t(n[0]);
                        e.contentWindow.$ && e.contentWindow.$(n[1]).focus()
                    }, 400) : t(e.on_focus).focus()
                }
            }), a = t("#" + this._mask_id).show(), this.main_ele = u, this.mask_ele = a
        },
        zIndex: function (e) {
            if (!e) return this.main_ele.css("z-index");
            this.mask_ele.css("z-index", this.mask_ele.css("z-index") * 1 + e * 1), this.main_ele.css("z-index", this.main_ele.css("z-index") * 1 + e * 1)
        },
        _get_box_width_height: function () {
            var e, n, r, i, s;
            return this.box == "body" ? (i = document.documentElement, s = document.body, n = Math.max(i.scrollWidth, i.clientWidth, s.clientWidth, s.scrollWidth), r = Math.max(i.scrollHeight, i.clientHeight, s.clientHeight, s.scrollHeight)) : (e = t(this.box), e.css("position", "relative"), n = e.width(), r = e.height()), this._box_width = n, this._box_height = r, [n, r]
        },
        _create_ele: function () {
            var e, n, r;
            n = t(this.box).data("popzindex") || 9999, e = document.createDocumentFragment(), this.is_mask && (r = t("<div/>"), r.css("filter", "Alpha(Opacity=" + this.opacity + ")"), r.css("opacity", this.opacity / 100), e.appendChild(r.attr({
                id: this._mask_id,
                name: this._names
            }).css({
                position: "absolute",
                top: 0,
                left: 0,
                width: this._box_width,
                height: this._box_height,
                background: this.mask_color,
                visibility: "visible",
                display: "none",
                "z-index": n
            }).html(t("#ie6,.ie6").length ? '<iframe src="about:blank" height="' + (this._box_height - 30) + '" width="' + (this._box_width - 30) + '" frameborder="0" scrolling="no" style="background:#000;filter:chroma(color=#ffffff)"></iframe>' : "")[0]), n++), e.appendChild(t("<div/>").attr({
                id: this._main_id,
                name: this._names
            }).css({
                position: "absolute",
                "z-index": n,
                display: "none",
                visibility: "visible",
                "float": "left"
            }).html(this.html)[0]), t(this.box).append(e), t(this.box).data("popzindex", n)
        },
        _on_callback: function () {
            var n = this,
				r;
            r = function (e) {
                var t, r, i, s = "";
                if (!e) return "";
                t = e.split(",");
                for (i = 0, r = t.length; i < r; i++) t[i].indexOf("#") != -1 ? s += "," + t[i] : s += ",#" + n._main_id + " " + t[i];
                return s.replace(/^,|,$/g, "")
            }, !!this.times && this.times > 0 && setTimeout(function () {
                !n.offset_box || t(n.offset_box).removeData("isShow"), n._close()
            }, n.times), this.is_resize && this.box == "body" && !this.offset_box && !e.system.is_mobile && t(window).on("resize", function () {
                n._resize()
            }), this.esc && this.box == "body" && !this.offset_box && t(window).on("keyup", function (e) {
                (e.which || e.keyCode) == 27 && n.close()
            }), this.is_fixed && this.box == "body" && !this.offset_box && !e.system.is_mobile && t(window).on("scroll", function () {
                n._scroll()
            }), !this.cancel_sel || t(r(this.cancel_sel)).on("click", function (e) {
                var r = window.location.href.replace(/#.*$/g, ""),
					i = (t(this).attr("href") || "").replace(r, "");
                i.replace(/#.*$/g, "") || e.preventDefault(), !n.offset_box || t(n.offset_box).removeData("isShow"), n.cancel()
            }), !this.confirm_sel || t(r(this.confirm_sel)).click(function (e) {
                var r = window.location.href.replace(/#.*$/g, ""),
					i = (t(this).attr("href") || "").replace(r, "");
                i.replace(/#.*$/g, "") || e.preventDefault(), !n.offset_box || t(n.offset_box).removeData("isShow"), n.confirm()
            }), !!this.drag_sel && this.box == "body" && this.times < 1 && !e.system.is_mobile && t(r(this.drag_sel)).css("cursor", "move").on("mousedown", function (e) {
                n.drag_start(e)
            }), typeof this.callback == "function" && this.callback.call(this)
        },
        _close: function (e) {
            var t = this;
            typeof e != "undefined" ? t.main_ele.fadeOut(e, function () {
                t._close_type()
            }) : this._close_type()
        },
        _close_type: function () {
            this.is_close_other === 1 ? (this.mask_ele.remove(), this.main_ele.remove()) : this.is_close_other === 2 ? (this.mask_ele.hide(), this.main_ele.hide()) : (this.mask_ele.remove(), this.main_ele.remove())
        },
        close: function (e) {
            this.cancel(e)
        },
        cancel: function (e) {
            this._close(e), !this.offset_box || t(this.offset_box).removeData("isShow"), typeof this.cancel_callback == "function" && this.cancel_callback.call(this)
        },
        confirm: function (e) {
            this._close(e), !this.offset_box || t(this.offset_box).removeData("isShow"), typeof this.confirm_callback == "function" && this.confirm_callback.call(this)
        },
        _get_top_left: function (e, n) {
            var r, i, s, o, u, a, f;
            return this.box == "body" ? (r = document.documentElement, i = document.body, s = r.clientHeight, o = r.clientWidth, u = (s - n) / 2 + Math.max(r.scrollTop, i.scrollTop), a = (o - e) / 2 + Math.max(r.scrollLeft, i.scrollLeft), [u < 0 ? 0 : u, a < 0 ? 0 : a]) : (f = t(this.box), [(f.height() - n) / 2, (f.width() - e) / 2])
        },
        _resize: function () {
            if (window.screen.width < 800) return;
            var e = document.documentElement,
				t = document.body,
				n = this.main_ele,
				r = this._get_top_left(n.width(), n.height());
            n.animate({
                top: r[0],
                left: r[1]
            }, 100), this.mask_ele.css({
                width: Math.max(e.scrollWidth, e.clientWidth, t.clientWidth, t.scrollWidth),
                height: Math.max(e.scrollHeight, e.clientHeight, t.clientHeight, t.scrollHeight)
            })
        },
        _scroll: function () {
            if (window.screen.width < 800) return;
            var e = this;
            clearTimeout(this._scroll_t), this._scroll_t = setTimeout(function () {
                var n = t("#" + e._main_id),
					r = e._get_top_left(n.width(), n.height());
                n.animate({
                    top: r[0],
                    left: r[1]
                }, 200)
            }, 200)
        },
        drag_start: function (e) {
            if (window.screen.width < 800) return;
            var n = this;
            if (!this.is_drag) return;
            var r = this.main_ele;
            this.x = e.clientX - r.offset().left, this.y = e.clientY - r.offset().top, t(document).on({
                mousemove: function (e) {
                    n.drag_move(e)
                },
                mouseup: function (e) {
                    n.drag_end(e)
                }
            })
        },
        drag_move: function (e) {
            var n, r;
            n = r = 0;
            if (this.box != "body") {
                var i = t(this.box).offset();
                n = i.top, r = i.left
            }
            r = e.clientX - this.x - r, n = e.clientY - this.y - n, t("#" + this._main_id).css({
                top: n,
                left: r
            })
        },
        drag_end: function (e) {
            t(document).off("mousemove"), t(document).off("mouseup");
            var n = this,
				r = t("#" + this._main_id),
				i = r.offset().top,
				s = r.offset().left,
				o = n._box_width - r.width(),
				u = n._box_height - r.height();
            s < 0 && r.animate({
                left: 0
            }, 400), i < 0 && r.animate({
                top: 0
            }, 400), s > o && r.animate({
                left: o
            }, 400), i > u && r.animate({
                top: u
            }, 400)
        }
    }
})();
(function () {
    "use strict";
    var e = window.jQuery,
		t = window.qh360cp;
    t.lightbox.frame = function (e) {
        e.show_title_bar = _.isUndefined(e.show_title_bar) ? !0 : e.show_title_bar;
        var n = [];
        return n.push('<div class="panel panel-t1 panel-info ' + (e.class_name || "") + '"' + (e.pop_box_style || "") + '><div class="panel-content">'), e.show_title_bar && n.push('<div class="hd"><h3>' + (e.has_close != "0" ? '<span class="close"></span>' : "") + (e.title || "\u6e29\u99a8\u63d0\u793a") + "</h3></div>"), n.push(e.content), n.push('</div><span class="sd"></span></div>'), e.drag_sel = ".hd", e.cancel_sel = ".cls,.close,.lightbox_cancel", e.html = n.join(""), t.lightbox.show(e)
    }, t.lightbox.confirm = function (e) {
        var n = [],
			r = e.tips_type ? "succ" : "info";
        return n.push('<div class="panel panel-t1 panel-fb"' + (e.pop_box_style || "") + '><div class="panel-content">'), n.push('<div class="hd"><h3>' + (e.has_close != "0" ? '<span class="close"></span>' : "") + (e.title || "\u6e29\u99a8\u63d0\u793a") + "</h3></div>"), n.push('<div class="bd">'), n.push('<div class="feedback clearfix"><i class="ico  ico-' + r + '"></i><div class="cont">'), n.push("<h4>" + e.content_title + "</h4><p>" + e.content + "</p>"), n.push('<div class="btns"><button type="button" class="btn lightbox_confirm"><span class="btn-panel btn-panel-primary ' + e.confirm_class + '">' + (e.confirm_title || "\u786e\u5b9a") + "</span></button>"), n.push(e.confirm_a || ""), n.push("</div></div></div>"), n.push("</div>"), n.push('</div><span class="sd"></span></div>'), e.html = n.join(""), e.drag_sel = ".hd", e.cancel_sel = ".cls,.close,.lightbox_cancel", e.confirm_sel = ".lightbox_confirm", t.lightbox.show(e)
    }, t.lightbox.alert = function (e) {
        var n = [],
			r = e.tips_type ? "succ" : "info";
        return n.push('<div class="panel panel-t1 panel-info"' + (e.pop_box_style || "") + '><div class="panel-content">'), n.push('<div class="hd"><h3>' + (e.has_close != "0" ? '<span class="close"></span>' : "") + (e.title || "\u6e29\u99a8\u63d0\u793a") + "</h3></div>"), n.push('<div class="bd"><div class="clearfix"><p class="text-center"><i class="ico ico-' + r + '"></i>'), n.push(e.content), n.push('</p><div class="btns text-center"><button type="button" class="btn lightbox_confirm"><span class="btn-panel btn-panel-primary">' + (e.confirm_title || "\u786e\u5b9a") + "</span></button>"), n.push(e.confirm_a || ""), n.push("</div></div>"), n.push("</div>"), n.push('</div><span class="sd"></span></div>'), e.html = n.join(""), e.drag_sel = ".hd", e.cancel_sel = ".cls,.close,.lightbox_cancel", e.confirm_sel = ".lightbox_confirm", t.lightbox.show(e)
    }, t.lightbox.fAlert = function (e) {
        var n = [],
			r = e.tips_type ? "succ" : "info";
        return n.push('<div class="panel panel-t1 panel-info"' + (e.pop_box_style || "") + '><div class="panel-content">'), n.push('<div class="hd"><h3><span class="close"></span>' + (e.title || "\u6e29\u99a8\u63d0\u793a") + "</h3></div>"), n.push('<div class="bd"><div class="clearfix"><p class="text-center clearfix" style="word-wrap: break-word;overflow: hidden;"><i class="ico ico-' + r + '" style="float:left;"></i><span style="float:left;text-align:left;width:260px;">'), n.push(e.content), n.push('</span></p><div class="btns text-center"><button type="button" class="btn lightbox_confirm"><span class="btn-panel btn-panel-primary">' + (e.confirm_title || "\u786e\u5b9a") + "</span></button>"), n.push(e.confirm_a || ""), n.push("</div></div>"), n.push("</div>"), n.push('</div><span class="sd"></span></div>'), e.html = n.join(""), e.cancel_sel = ".cls,.close,.lightbox_cancel", e.confirm_sel = ".lightbox_confirm", t.lightbox.show(e)
    }, t.lightbox.loading = function (e, n) {
        return t.lightbox.frame({
            box: n || "body",
            esc: !1,
            pop_box_style: 'style="width:380px;"',
            show_title_bar: !1,
            content: '<div class="bd"><p class="text-center"><img src="../../images/t01d75074755ea9e041.gif" />   <span style="display:inline-block;height:48px;line-height:48px;">' + (e || "") + "</span></p></div>"
        })
    }, t.lightbox.tips = function (e) {
        var n = ("0" + e.width) * 1;
        e.width = n ? 'style = "width:' + n + 'px;"' : "", e.direction = e.direction || "tl";
        var r = e.num || "8",
			i = e.dist || 0,
			s = i ? 'style="' + (e.direction == "tl" ? "left:" : "right:") + i + 'px"' : "",
			o = '<div class="panel panel-t' + r + '"' + e.width + '><div class="panel-content"><div class="bd">' + e.content + '</div></div><span class="sd ' + e.direction + '" ' + s + "></span></div>";
        return t.lightbox.show({
            html: o,
            is_mask: !1,
            is_center: !1,
            offset_box: e.offset_box,
            top: e.top || 10,
            left: e.left || -40,
            callback: e.callback
        })
    }, t.lightbox.recharge = function (e) {
        var n = [],
			r = {
			    icon: "warn",
			    content: "<strong>\u8bf7\u60a8\u5728\u65b0\u6253\u5f00\u7684\u9875\u9762\u5b8c\u6210\u5145\u503c\u3002</strong><br />\u5145\u503c\u5b8c\u6210\u524d\uff0c\u8bf7\u4e0d\u8981\u5173\u95ed\u6b64\u7a97\u53e3\u3002<br />\u5b8c\u6210\u5145\u503c\u540e\u8bf7\u6839\u636e\u60a8\u7684\u60c5\u51b5\u70b9\u51fb\u4e0b\u9762\u7684\u6309\u94ae\u3002",
			    on_focus: !1,
			    confirm_title: {
			        text: "\u5df2\u5b8c\u6210\u5145\u503c"
			    },
			    cancel_title: {
			        text: "\u4ed8\u6b3e\u9047\u5230\u95ee\u9898",
			        //href: "http://bbs.360.cn/5473003/250878661.html",
			        href: "#",
			        target: 'target="_blank"',
			        style_tag_a: !0
			    },
			    confirm_callback: function () {
			        typeof e == "function" ? e.call(null) : window.location.href = "/recharge/reclist/"
			    }
			};
        return r = t.lightbox._pop_html(r), t.lightbox.confirm(r)
    }, t.lightbox.touzhuxieyi = function () {
        t.lightbox.frame({
            pop_box_style: 'style="height:400px;width:480px;"',
            content: '<iframe id="userxieyi_360_caipiao" frameborder="0" src="/agreement/xieyi/" height="345" width="480"></iframe></div>',
            is_fixed: !1,
            title: "\u7528\u6237\u59d4\u6258\u6295\u6ce8\u534f\u8bae"
        })
    }, t.lightbox.touzhuxianhao = function () {
        t.lightbox.frame({
            pop_box_style: 'style="height:293px;width:430px;"',
            is_fixed: !1,
            content: '<iframe id="userxianhao_360_caipiao" frameborder="0" src="/agreement/xianhao/" height="250" width="430"></iframe></div>',
            title: "\u9650\u53f7\u6295\u6ce8\u98ce\u9669\u987b\u77e5"
        })
    }, t.lightbox.auto_buy = function (e, n) {
        var r = 510;
        t.lightbox.show({
            html: '<iframe id="userxieyi_360_caipiao" frameborder="0" scrolling="no" src="/follow?lotid=' + e + "&uid=" + n + "&t=" + +(new Date) + '" height="625" width="' + r + '"></iframe>',
            is_fixed: !1,
            cancel_sel: ".close"
        })
    }, t.lightbox.follow_buy = function (e, n) {
        var r = 510;
        t.lightbox.show({
            html: '<iframe id="userxieyi_360_caipiao" frameborder="0" scrolling="no" src="/follow?lotid=' + e + "&uid=" + n + "&t=" + +(new Date) + '" height="633" width="' + r + '"></iframe>',
            is_fixed: !1,
            cancel_sel: ".close"
        })
    }, t.lightbox.zhanji = function (e, n) {
        t.lightbox.show({
            html: '<iframe id="userxieyi_360_caipiao" frameborder="0" scrolling="no" src="/gendan/zhanji/?uid=' + n + "&lotid=" + e + "&t=" + +(new Date) + '" height="520" width="624"></iframe>',
            cancel_sel: ".close",
            is_fixed: !1
        })
    }, t.lightbox.luck = function () {
        var n = [],
			r = "reg_360_caipiao" + +(new Date);
        n.push('<iframe id="' + r + '" scrolling="no" frameborder="0" src="about:blank" height="290" width="513"></iframe>'), n.push('<div id="luck_iframe_loading" style="position:absolute;top:0;left:0; width:513px;height:290px;line-height:290px;background:#fff;z-index:9999;"><img style="position:absolute;top:110px;left:220px;" src="../../images/loading_small.gif" /></div>'), t.lightbox.show({
            html: n.join(""),
            callback: function () {
                setTimeout(function () {
                    window.$_pop = window.$_pop || {}, window.$_pop.luck = t.lightbox.luck, e("#" + r).attr("src", "/pub/luck/").on("load", function () {
                        e("#luck_iframe_loading").fadeOut(100)
                    })
                }, 10)
            }
        })
    }, t.lightbox.duijiang = function () {
        var e = [];
        e.push('<div class="pop_prizeguide">'), e.push('<div class="prizeguide-cont">'), e.push('<em class="pop-close"><i class="ico-close"></i>\u5173\u95ed</em>'), e.push('<div class="prize-step"></div>'), e.push('<div class="prize-btn"></div>'), e.push("</div>"), e.push("</div>"), t.lightbox.show({
            html: e.join(""),
            cancel_sel: ".pop-close",
            confirm_sel: ".prize-btn"
        })
    }
})();
(function () {
    "use strict";
    var t = window.jQuery,
		n = window.qh360cp;
    n.passport = n.passport || {}, n.passport._profile_src_type = "pcw_caipiao", n.passport.get_profile_src = function () {
        var e = n.passport.coop().code;
        if (e == "360") {
            var t = window.location.hostname.split("."),
				r = n.cookie.get("cp_360_agent") || n.string.get_url_param("agent");
            r ? e = r : t[0] != "cp" && (e = t[0])
        }
        return e == "360" ? n.passport._profile_src_type : n.passport._profile_src_type + "_tg_" + e
    }, n.passport.current_hostname = function () {
        var e = [
			[/\./g, "_"]
        ];
        return e.push([/^.*(360_cn)$/g, "cp_$1"]), e.push([/^.*(pptv_com)$/g, "cp_$1"]), n.string.mul_replace(window.location.hostname, e)
    }(), n.passport.coop_cookie_set = function (e) {
        var t, r = n.passport.coop().code,
			i = e.userinfo.unionAccount,
			s = e.userinfo.userName || e.userinfo.username,
			o = {
			    name: "Q",
			    value: e.q,
			    expires: e.expires
			},
			u = {
			    name: "T",
			    value: e.t,
			    expires: e.expires
			},
			a = {
			    name: "loginedUserName",
			    value: s,
			    domain: "360.cn",
			    path: "/",
			    expires: 360
			},
			f = {
			    name: "loginedUserName_" + r,
			    value: i,
			    expires: 360
			},
			l = [];
        r != "360" ? (l.push(o, u), l.push(i ? f : a)) : l.push(a);
        var c, h = l.length;
        for (c = 0; c < h; c++) t = {
            name: l[c].name,
            value: l[c].value
        }, l[c].expires * 1 && (t.expires = l[c].expires), l[c].domain * 1 && (t.domain = l[c].domain), n.cookie.set(t)
    }, n.passport.coop_config = {
        cp_360_cn: {
            code: "360",
            find_user: '<a href="http://cp.360.cn/user/findaccount/" class="lnk" target="_blank">\u5fd8\u8bb0\u5e10\u53f7\uff1f</a>',
            find_pwd: '<a href="http://i.360.cn/findpwd/" class="lnk" target="_blank">\u5fd8\u8bb0\u5bc6\u7801\uff1f</a>',
            pass: function (e) {
                return n.sec.md5(e)
            }
        },
        cp_pptv_com: {
            code: "pptv",
            title: "pptv\u8d26\u53f7",
            find_user: "",
            find_pwd: '<a href="http://passport.pptv.com/fetchpassword.aspx" class="lnk" target="_blank">\u5fd8\u8bb0\u5bc6\u7801\uff1f</a>',
            pass: function (e) {
                return e
            }
        }
    }, n.passport.coop = function (e) {
        var r = n.passport.current_hostname;
        if (e) {
            var i = t(".panel-login .active"),
				s = i.attr("usertype") == "1";
            r = s ? n.passport.current_hostname : "cp_360_cn"
        }
        return n.passport.coop_config[r]
    }, n.passport.password_hash = function (e) {
        return e && (e = n.passport.coop(1).pass(e)), e
    }, n.passport.login_other_domain = function (e) {
        var r = {
            360: "http://rd.login.360.cn",
            "360pay": "http://rd.login.360pay.cn",
            so: "http://rd.login.so.com/",
            "360kan": "http://rd.login.360kan.com",
            1360: "http://rd.login.1360.com",
            qihoo: "http://rd.login.qihoo.com/"
        };
        n.passport.login_ok_result = [], n.passport.login_fail_result = [];
        for (var i in r) t.getScript(r[i] + "/?o=sso&m=setcookie&func=Q.passport.sso_callbak&s=" + e + "&_=" + +(new Date))
    }, n.passport.login_ok_result = [], n.passport.login_fail_result = [], n.passport.sso_callbak = function (e) {
        e.errno > 0 ? n.passport.login_fail_result.push(e.domain) : n.passport.login_ok_result.push(e.domain)
    }, n.passport.login_post = function () {
        var e = t.trim(t(".panel-login .passport_name").val()),
			r = t(".panel-login .passport_pwd").val(),
			i = t(".panel-login .passport_is_keep").prop("checked") * 1,
			s = t(".panel-login .err"),
			o = "";
        if (!e || e == t(".panel-login .passport_name")[0].defaultValue) o = "\u8bf7\u5148\u8f93\u5165\u5e10\u53f7", s.css("margin-left", 200);
        else if (!r || r == t(".panel-login .passport_pwd")[0].defaultValue) o = "\u8bf7\u5148\u8f93\u5165\u5bc6\u7801", s.css("margin-left", 200);
        if (o) {
            s.text(o).animate({
                "margin-left": 0
            }, 100);
            return
        }
        var u = {
            account: e,
            password: n.passport.password_hash(r),
            isKeepAlive: i,
            userType: n.passport.coop(1).code,
            union: n.passport.coop().code,
            t: +(new Date)
        },
			a = n.config.ssl_login,
			f = a || window.location.protocol + "//" + window.location.hostname != n.config.login_url,
			l = "json";
        f && (l = "jsonp");
        var c = t("#capt");
        if (c.is(":visible")) {
            var h = t("#reg_email_captcha"),
				p = h.val();
            if (!/^\w{4,10}$/.test(p)) {
                s.text("\u8bf7\u8f93\u5165\u6709\u6548\u7684\u9a8c\u8bc1\u7801").animate({
                    "margin-left": 0
                }, 100);
                return
            }
            u.captcha = p
        }
        var d = (a ? n.config.ssl_login_url : n.config.login_url) + "/user/unionLogin/?" + t.param(u);
        t.ajax({
            url: d,
            dataType: l,
            success: function (e) {
                n.passport.login_callback(e)
            },
            error: function () {
                alert("\u8bf7\u68c0\u67e5\u7f51\u7edc\u662f\u5426\u901a\u7545")
            }
        })
    }, n.passport.login_callback = function (e) {
        e.errno == "0" ? (e.userinfo.tips = "login", n.passport.callback_ok(e)) : e.errno == "101001" ? n.passport.bind_user(e.userinfo) : n.passport.callback_fail(e)
    }, n.passport.login_show_callback = function (e) {
        n.placeholder.start("input[type=text][placeholder]");
        var r = n.passport.coop(),
			i = n.cookie.get("loginedUserName"),
			s = n.cookie.get("loginedUserName_" + r.code),
			o = t(".panel-login .passport_name"),
			u = t(".panel-login .passport_pwd"),
			a = t("#capt"),
			f = t(".panel-login .err");
        t(".panel-login .nav-tab li").on("click", function (e) {
            e.preventDefault();
            var r = t(this);
            r.addClass("active").siblings("li").removeClass("active");
            var a = r.attr("usertype"),
				l = n.passport.coop(1);
            a == "1" ? (o.val(s).attr("placeholder", "\u60a8\u7684" + l.code + "\u5e10\u53f7"), o.parents(".v").siblings(".k").text(l.title + "\uff1a")) : (o.val(i).attr("placeholder", "\u60a8\u7684360\u8d2d\u5f69\u6635\u79f0"), o.parents(".v").siblings(".k").text("\u8d2d\u5f69\u6635\u79f0\uff1a")), u.val(""), f.text(""), o.parents(".v").siblings(".t").html(l.find_user), u.parents(".v").siblings(".t").html(l.find_pwd), o.val() ? u.focus() : o.focus()
        }), i && o.val(i), o.on("focus", function () {
            f.text("")
        }), u.on("keyup", function (e) {
            e.keyCode == 13 && t(".panel-login .passport_submit").trigger("click")
        }).on("focus", function () {
            f.text("")
        }), a.on("keyup", function (e) {
            e.keyCode == 13 && t(".panel-login .passport_submit").trigger("click")
        }).on("focus", function () {
            f.text("")
        }), t(".panel-login .passport_submit").on("click", function () {
            n.passport.login_post()
        }), t(".login_reg").on("click", function (e) {
            e.preventDefault(), n.passport.reg()
        })
    }, n.passport.callback_ok = function (e) {
        var r = e.userinfo,
			i = r.userName,
			s = "";
        s = r.loginEmail || r.tel || "", t(".passport_username").text(i).attr("email", s);
        var o = r.msgs || "0";
        o != "0" ? t(".passport_msg_count").text(o).addClass("red") : t(".passport_msg_count").text(o).removeClass("red"), r.imgUrl && t(".passport_portrait").attr("src", r.imgUrl.replace("48_48", t(".passport_portrait").attr("data-wh"))), t(".passport_login_box").hide(), t(".passport_logined_box").show(), n.passport.coop_cookie_set(e), n.passport.login_other_domain(e.s), r.tips == "login" ? (n.lightbox.close(), n.passport._callback_private(), n.passport._callback_private = t.noop) : n.lightbox.alert({
            content: r.tips,
            confirm_callback: function () {
                n.passport._callback_private(), n.passport._callback_private = t.noop
            }
        })
    }, n.passport.callback_fail = function (e) {
        t(".panel-login .err").css({
            "margin-left": 200,
            width: 200
        }).text(e.errmsg).animate({
            "margin-left": 0
        }, 100);
        var n = t("#capt");
        e.errno == "5010" && n.show(), n.is(":visible") && t("#ifm_captcha").attr("src", t("#ifm_captcha").attr("src") + "&t" + +(new Date))
    }, n.passport._callback_private = t.noop, n.passport.callback_pages = function () { }, n.passport.login = function (e) {
        var r = [],
			i = n.passport.coop(),
			s = "\u8d2d\u5f69\u6635\u79f0",
			o = "\u60a8\u7684360\u8d2d\u5f69\u6635\u79f0",
			u = (n.config.ssl_reg ? n.config.ssl_reg_url : n.config.reg_url) + "/captcha?app=caipiao&type=new&t=" + +(new Date);
        r.push('<div class="panel panel-t1 panel-login coop-login"><div class="panel-content">'), r.push('<div class="hd" style="border:1px #f00 solid;"><h3>\u8d26\u53f7\u767b\u5f55</h3></div>'), r.push('<div class="bd"><div class="panel-login-bd">'), i.code != "360" ? (r.push('<ul class="nav-tab clearfix" style="margin-top:15px;">'), r.push('<li class="active" usertype="0">\u8d2d\u5f69\u6635\u79f0<i class="ico ico-active1"></i></li>'), r.push('<li usertype="1">' + n.passport.coop().title + '<i class="ico ico-active1"></i></li></ul>')) : (o = "\u60a8\u7684\u7528\u6237\u540d/\u624b\u673a\u53f7/\u90ae\u7bb1", s = "\u7528\u6237\u540d"), r.push('<div class="form form-panel"><div class="errtips red" style="_width:280px;"><em class="err"></em></div><form name="lightbox-login-form"><ul>'), r.push('<li class="fm-item"><span class="k">' + s + "\uff1a</span>"), r.push('<span class="v"><input type="text" tabindex="100" class="text text3 passport_name" placeholder="' + o + '"></span>'), r.push('<span class="t"><a href="/user/findaccount/" class="lnk" target="_blank">\u5fd8\u8bb0\u5e10\u53f7\uff1f</a></span>'), r.push('</li><li class="fm-item"><span class="k">\u5bc6\u7801\uff1a</span>'), r.push('<span class="v"><input type="password" tabindex="101" class="text text3 passport_pwd" placeholder="\u60a8\u7684\u5bc6\u7801"></span>'), r.push('<span class="t"><a href="http://i.360.cn/findpwd/" class="lnk" target="_blank">\u5fd8\u8bb0\u5bc6\u7801\uff1f</a></span>'), r.push('</li><li class="fm-item none" id="capt"><label for="#" class="k">\u9a8c\u8bc1\u7801\uff1a</label><span class="v">'), r.push('<input type="text" id="reg_email_captcha" tabindex="116" maxlength="10" class="text text3 input-small w90" placeholder="\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"></span>'), r.push('<span class="t"><iframe frameborder="0" scrolling="no" height="33" width="150" id="ifm_captcha" src="' + u + '"></iframe></span></li></ul></form>'), r.push('<div class="auto-login"><label for="#">'), r.push('<input type="checkbox" checked="checked" class="checkbox passport_is_keep"> <span>\u4e0b\u6b21\u81ea\u52a8\u767b\u5f55('), r.push('<em class="normal">\u516c\u5171\u573a\u5408\u614e\u7528</em>)</span></label></div><div class="btns">'), r.push('<button class="btn passport_submit" type="button" ><span class="btn-panel btn-panel-primary">\u767b\u5f55</span></button>'), r.push('<a href="#" class="lnk login_reg" style="margin-left:20px;">\u6ce8\u518c\u65b0\u8d26\u53f7</a></div>'), r.push('</div></div></div></div><span class="close"></span><span class="sd"></span></div>');
        var a = {
            html: r.join(""),
            cancel_sel: ".close",
            on_focus: function () {
                n.cookie.get("loginedUserName") ? t(".panel-login .passport_pwd").focus() : t(".panel-login .passport_name").focus()
            },
            callback: n.passport.login_show_callback
        };
        n.passport._callback_private = _.isFunction(e) ? e : n.passport._callback_private != t.noop ? n.passport._callback_private : _.isFunction(n.passport.callback_pages) ? n.passport.callback_pages : t.noop, n.lightbox.show(a)
    }, n.passport.get_current_user = function (e) {
        e = t.isFunction(e) ? e : t.noop, t.ajax({
            url: "/int/querybalance/?t=" + +(new Date),
            dataType: "json"
        }).done(function (t) {
            e.call(null, t)
        }).fail(function () {
            e.call(null, {})
        })
    }, n.passport.get_current_username = function (e) {
        t.ajax({
            url: "/int/getcuruser?t=" + +(new Date)
        }).done(function (t) {
            e.call(null, t)
        }).fail(function () {
            e.call(null, "")
        })
    }, n.passport.reg = function (e) {
        n.passport._callback_private = _.isFunction(e) ? e : n.passport._callback_private != t.noop ? n.passport._callback_private : _.isFunction(n.passport.callback_pages) ? n.passport.callback_pages : t.noop, n.lightbox.show({
            html: n.passport.reg_html,
            cancel_sel: ".cls,.close",
            on_focus: "#reg_tel",
            callback: n.passport.reg_show_callback
        })
    }, n.passport.reg_html = function () {
        var e = [];
        return e.push('<div class="panel panel-t1 panel-reg"><div class="panel-content">'), e.push('<div class="hd"><h3>\u8d26\u53f7\u6ce8\u518c</h3></div><div class="bd"> <div class="panel-reg-bd">'), e.push('<ul class="nav-tab clearfix reg_swap"><li class="active" regtype="2">\u624b\u673a\u53f7\u6ce8\u518c<i class="ico ico-active1"></i></li>'), e.push('<li regtype="1">\u90ae\u7bb1\u6ce8\u518c<i class="ico ico-active1"></i></li></ul>'), e.push('<div class="tab-content"><div class="tab-pane active"><div class="form form-panel reg_panel">'), e.push('<ul class="reg_tel"><li class="fm-item"><label for="#" class="k">\u624b\u673a\u53f7\uff1a</label>'), e.push('<span class="v"><input type="text" tabindex="107" id="reg_tel" class="text text3" maxlength="11" placeholder="\u8bf7\u8f93\u5165\u624b\u673a\u53f7\u7801">'), e.push('<span class="err">&nbsp;</span></span><span class="t"></span></li>'), e.push('<li class="fm-item"><label for="#" class="k">\u786e\u8ba4\u7801\uff1a</label><span class="v">'), e.push('<input type="text" id="reg_mobile_captcha" tabindex="116" maxlength="10" class="text text3 input-small w90" style="width:100px !important;" placeholder="\u8bf7\u8f93\u5165\u53f3\u8fb9\u7684\u5b57\u7b26">'), e.push('<span class="err">&nbsp;</span></span><span class="t">'), e.push('<iframe frameborder="0" scrolling="no" height="33" width="150" id="ifm_m_captcha" src="' + ((n.config.ssl_reg ? n.config.ssl_reg_url : n.config.reg_url) + "/captcha?app=caipiao&type=new&t=" + +(new Date)) + '"></iframe></span></li>'), e.push('<li class="fm-item"><label for="#" class="k">\u9a8c\u8bc1\u7801\uff1a</label>'), e.push('<span class="v"><input type="text" tabindex="108" id="reg_tel_captcha" class="text text3 input-small" maxlength="6" placeholder="\u8bf7\u8f93\u5165\u63a5\u6536\u5230\u7684\u9a8c\u8bc1\u7801">'), e.push('<span class="err">&nbsp;</span></span><span class="t" style="text-align:center;line-height:25px;"><a href="#" id="reg_tel_captcha_btn" class="btn-panel" style="padding:0 12px;">\u70b9\u51fb\u83b7\u53d6\u9a8c\u8bc1\u7801</a>'), e.push('<br /><a class="lnk" href="http://i.360.cn/help/smscode" target="_blank">\u6821\u9a8c\u7801\u5e38\u89c1\u95ee\u9898\uff1f</a></span></li>'), e.push('<li class="fm-item"><label for="#" class="k">\u7528\u6237\u540d\uff1a</label>'), e.push('<span class="v"><input type="text" tabindex="109" id="reg_tel_username" class="text text3" maxlength="14" placeholder="\u8bf7\u907f\u514d\u4f7f\u7528\u771f\u5b9e\u59d3\u540d\uff0c\u6ce8\u518c\u6210\u529f\u540e\u4e0d\u53ef\u4fee\u6539">'), e.push('<span class="err">&nbsp;</span></span><span class="t"></span></span></li><li class="fm-item"><label for="#" class="k">\u5bc6\u7801\uff1a</label>'), e.push('<span class="v"><input type="password" tabindex="110" id="reg_tel_pwd" class="text text3" maxlength="20" placeholder="6-20\u4e2a\u5b57\u7b26\uff0c\u4e0d\u80fd\u4e3a\u6c49\u5b57\uff08\u533a\u5206\u5927\u5c0f\u5199\uff09">'), e.push('<span class="err" style="display: none;">&nbsp;</span><span class="err gray">\u5bc6\u7801\u5f3a\u5ea6 <span class="ui-mmqd">'), e.push('</span><span class="ui-mmqd"></span><span class="ui-mmqd"></span><span class="ui-mmqd"></span> <span class="c-qd"></span></span></span>'), e.push('<span class="t"></span></li><li class="fm-item"><label for="#" class="k">\u786e\u8ba4\u5bc6\u7801\uff1a</label>'), e.push('<span class="v"><input type="password" tabindex="111" id="reg_tel_pwd2" class="text text3" placeholder="\u8bf7\u518d\u8f93\u5165\u4e00\u6b21\u4e0a\u9762\u8f93\u5165\u7684\u5bc6\u7801">'), e.push('<span class="err">&nbsp;</span></span><span class="t"></span></li></ul>'), e.push('<ul class="reg_email none"><li class="fm-item"><label for="#" class="k">\u90ae\u7bb1\uff1a</label>'), e.push('<span class="v"><input type="text" tabindex="112" id="reg_email" class="text text3" maxlength="50" placeholder="\u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740">'), e.push('<span class="err">&nbsp;</span></span><span class="t"></span></li>'), e.push('<li class="fm-item"><label for="#" class="k">\u7528\u6237\u540d\uff1a</label>'), e.push('<span class="v"><input type="text" tabindex="113" id="reg_email_username" class="text text3" maxlength="14" placeholder="\u8bf7\u907f\u514d\u4f7f\u7528\u771f\u5b9e\u59d3\u540d\uff0c\u6ce8\u518c\u6210\u529f\u540e\u4e0d\u53ef\u4fee\u6539">'), e.push('<span class="err">&nbsp;</span></span><span class="t"></span></li><li class="fm-item"><label for="#" class="k">\u5bc6\u7801\uff1a</label>'), e.push('<span class="v"><input type="password" tabindex="114" id="reg_email_pwd" class="text text3" maxlength="20" placeholder="6-20\u4e2a\u5b57\u7b26\uff0c\u4e0d\u80fd\u4e3a\u6c49\u5b57\uff08\u533a\u5206\u5927\u5c0f\u5199\uff09">'), e.push('<span class="err" style="display: none;">&nbsp;</span><span class="err gray">\u5bc6\u7801\u5f3a\u5ea6 <span class="ui-mmqd"></span>'), e.push('<span class="ui-mmqd"></span><span class="ui-mmqd"></span><span class="ui-mmqd"></span> <span class="c-qd"></span></span></span>'), e.push('<span class="t"></span></li><li class="fm-item"><label for="#" class="k">\u786e\u8ba4\u5bc6\u7801\uff1a</label>'), e.push('<span class="v"><input type="password" tabindex="115" id="reg_email_pwd2" class="text text3" placeholder="\u8bf7\u518d\u8f93\u5165\u4e00\u6b21\u4e0a\u9762\u8f93\u5165\u7684\u5bc6\u7801">'), e.push('<span class="err">&nbsp;</span></span><span class="t"></span></li><li class="fm-item">'), e.push('<label for="#" class="k">\u9a8c\u8bc1\u7801\uff1a</label><span class="v">'), e.push('<input type="text" id="reg_email_captcha" tabindex="116" maxlength="10" class="text text3 input-small w90" placeholder="\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801">'), e.push('<span class="err">&nbsp;</span></span><span class="t">'), e.push('<iframe frameborder="0" scrolling="no" height="33" width="150" id="ifm_captcha" src="' + ((n.config.ssl_reg ? n.config.ssl_reg_url : n.config.reg_url) + "/captcha?app=caipiao&type=new&t=" + +(new Date)) + '"></iframe></span></li></ul>'), e.push('<div class="btns" style="padding-left:77px;"><button style="margin-left:0;" class="btn" type="button" id="reg_submit"><span class="btn-panel btn-panel-primary">\u9a6c\u4e0a\u6ce8\u518c</span></button>'), e.push('<span>\u5df2\u6709\u8d26\u53f7\uff1f</span><a href="#" id="reg_login" class="lnk">\u7acb\u5373\u767b\u5f55</a></div>'), e.push('<p class="xieyi"><label><input type="checkbox" id="reg_user_xieyi" checked="checked" disabled="disabled" class="checkbox">'), e.push('<span>\u6211\u5df2\u540c\u610f<a href="http://i.360.cn/pub/protocol.html" class="lnk" target="_blank">\u300a360\u7528\u6237\u670d\u52a1\u6761\u6b3e\u300b</a></span></label></p>'), e.push('</div></div></div></div></div></div><span class="close"></span><span class="sd"></span></div>'), e.join("")
    }, n.passport.reg_show_callback = function () {
        n.placeholder.start("input[type=text][placeholder]"), n.ui.tab({
            control: ".reg_swap li",
            current_class: "active",
            content: ".reg_panel ul",
            callback: function () {
                t(".reg_panel :text:visible:first").focus()
            }
        }), t("#reg_tel").on("keyup blur", function (e) {
            if (e.keyCode == 67 || e.keyCode == 17) return;
            var r = t(this),
				i = n.string.dbc_to_sbc(r.val()).replace(/\D/g, ""),
				s = "\u624b\u673a\u53f7\u7801\u683c\u5f0f\u9519\u8bef",
				o = /^1[^0129]\d{9}$/g;
            if (!i) {
                r.removeData("val"), n.passport.reg_show_result_tips(r, 1, "\u8bf7\u8f93\u5165\u624b\u673a\u53f7\u7801");
                return
            }
            i.length == 11 && i.replace(o, "") && (r.removeData("val"), n.passport.reg_show_result_tips(r, 1, s)), r.val(i);
            if (e.type == "blur") if (i.replace(o, "")) r.removeData("val"), n.passport.reg_show_result_tips(r, 1, s);
            else {
                if (r.data("val") == i) return;
                r.data("val", i), n.passport.reg_check_account(function (e) {
                    n.passport.reg_show_result_tips(r, e.errno * 1 == 0 ? 2 : 1, e.msg)
                }, {
                    op: "checkmobile",
                    mobile: i
                })
            }
        }), n.passport.reg_check_email_evt(), n.passport.reg_check_user_evt(), n.passport.reg_check_pwd_evt(), t("#reg_tel_captcha").on("blur", function (e) {
            var r = t(this),
				i = n.string.dbc_to_sbc(r.val().replace(/\D/g, ""));
            if (!i) {
                r.data("ok", "0"), r.siblings(".err").text("\u8bf7\u8f93\u5165\u63a5\u6536\u5230\u7684\u9a8c\u8bc1\u7801");
                return
            }
            if (i.length != 6) {
                r.data("ok", "0"), r.siblings(".err").text("\u9a8c\u8bc1\u7801\u4e3a6\u4f4d\u7eaf\u6570\u5b57");
                return
            }
            r.siblings(".err").html("&nbsp;"), r.data("ok", "1")
        }), t("#reg_tel_captcha_btn").on("click", function (e) {
            e.preventDefault();
            var r = t(this),
				i = t("#reg_tel"),
				s = i.siblings(".err"),
				o = r.parents(".t").siblings(".v").find(".err");
            if (!i.val()) {
                s.removeClass("green").text("\u8bf7\u5148\u8f93\u5165\u624b\u673a\u53f7\u7801");
                return
            }
            var u = t("#reg_mobile_captcha");
            if (!u.val()) {
                u.siblings(".err").removeClass("green").text("\u8bf7\u5148\u8f93\u5165\u53f3\u8fb9\u7684\u5b57\u7b26");
                return
            }
            if (i.data("ok") != "1") return;
            if (r.data("get_ok") == "1") return;
            n.countdown.tmp_save = n.countdown.start({
                end_time: 120,
                sid: "#reg_tel_captcha_btn",
                style: "\u83b7\u53d6\u95f4\u9694\u8fd8\u6709(ss)",
                end_style: "\u70b9\u51fb\u83b7\u53d6\u9a8c\u8bc1\u7801",
                types: 1,
                callback: function () {
                    r.css("color", "#333"), r.removeData("get_ok")
                }
            }), r.css("color", "#ccc"), r.data("get_ok", "1");
            var a = "json";
            window.location.hostname != "cp.360.cn" && (a = "jsonp"), t.ajax({
                url: n.config.login_url + "/authmobile/sendcode/",
                dataType: a,
                data: {
                    mobile: i.val(),
                    captcha: u.val(),
                    t: +(new Date)
                },
                success: function (e) {
                    switch (e.xCode) {
                        case "9999":
                            u.val("").siblings(".err").removeClass("green").text(e.xMessage);
                            break;
                        case "1205":
                            e.xMessage.length > 10 ? alert(e.xMessage) : u.val("").siblings(".err").removeClass("green").text(e.xMessage), n.countdown.tmp_save.close();
                            break;
                        case "0":
                            o.addClass("green").text("\u6210\u529f\u53d1\u9001\uff0c\u8bf7\u6ce8\u610f\u67e5\u6536");
                            break;
                        default:
                            e.xMessage.length > 10 ? alert(e.xMessage) : o.removeClass("green").text(e.xMessage)
                    }
                },
                error: function () {
                    o.removeClass("green").text("\u7f51\u7edc\u9519\u8bef")
                }
            })
        }), n.passport.reg_check_img_captcha_evt(), t("#reg_submit").on("click", function (e) {
            e.preventDefault();
            if (n.passport.is_post) return;
            t(".panel-reg input:visible").trigger("blur"), n.passport.reg_check_data()
        }), t("#reg_login").on("click", function () {
            n.passport.login()
        }), t(".panel-reg input").on("keyup", function (e) {
            if (e.keyCode !== 13) return;
            t("#reg_submit").trigger("click")
        })
    }, n.passport.reg_check_user_evt = function () {
        t("#reg_email_username,#reg_tel_username,#reg_bind_username").on("blur", function (e) {
            var r = t(this),
				i = /^[\w\_\.\u4E00-\u9FFF]{2,14}$/gi,
				s = n.string.dbc_to_sbc(r.val()),
				o = "2-14\u4e2a\u5b57\u7b26\uff0c\u7531\u6570\u5b57\u3001\u5b57\u6bcd\u3001\u4e0b\u5212\u7ebf\u548c\u4e2d\u6587\u7ec4\u6210",
				u = n.string.len(s);
            if (!u) {
                n.passport.reg_show_result_tips(r, 1, "\u8bf7\u8f93\u5165\u7528\u6237\u540d"), r.removeData("val");
                return
            }
            if (s.replace(i, "") || u > 14 || u < 2) r.removeData("val"), n.passport.reg_show_result_tips(r, 1, o);
            else {
                if (r.data("val") == s) return;
                r.data("val", s), n.passport.reg_check_account(function (e) {
                    n.passport.reg_show_result_tips(r, e.errno == "10000" ? 2 : 1, e.msg)
                }, {
                    op: "checkuser",
                    userName: s
                })
            }
        })
    }, n.passport.reg_check_pwd_evt = function () {
        t("#reg_email_pwd,#reg_tel_pwd,#reg_bind_pwd").on("keyup blur", function (e) {
            if (e.keyCode == 67 || e.keyCode == 17) return;
            var r = t(this),
				i = /^[0-9a-zA-Z\s\~\!\@\#\$\%\^\&\*\(\)\_\-\+\=\?\/\\\|\'\"\>\.\<\,\;\:]{6,20}$/g,
				s = n.string.dbc_to_sbc(r.val()),
				o = "6-20\u4e2a\u5b57\u7b26\uff0c\u4e0d\u80fd\u4e3a\u6c49\u5b57\uff08\u533a\u5206\u5927\u5c0f\u5199\uff09";
            o = s ? o : "\u8bf7\u8f93\u5165\u767b\u5f55\u5bc6\u7801";
            var u = ["\u5dee", "\u5f31", "\u4e00\u822c", "\u5b89\u5168", "\u6781\u597d"],
				a = s.length,
				f = /[0-9]/gi.test(s),
				l = /[a-z]/gi.test(s),
				c = /[^0-9a-z]/gi.test(s),
				h = 0,
				p = 0;
            a >= 8 && (p += 5), f && (p += 5), l && (p += 5), c && (p += 5), _.uniq(s) < a / 2 && (p -= 5), h = p / 5;
            var d = r.parents(".v"),
				v = d.find(".err");
            d.find(".ui-mmqd").filter(":lt(" + h + ")").removeClass("ui-mmqd-1 ui-mmqd-2 ui-mmqd-3 ui-mmqd-4").addClass("ui-mmqd-" + h), d.find(".ui-mmqd").filter(":gt(" + (h - 1) + ")").removeClass("ui-mmqd-1 ui-mmqd-2 ui-mmqd-3 ui-mmqd-4"), d.find(".c-qd").removeClass("c-qd-1 c-qd-2 c-qd-3 c-qd-4").addClass("c-qd-" + h).text(u[h]);
            var m = !s || s.replace(i, "") ? 1 : 2;
            m === 1 ? (v.eq(0).show(), v.eq(1).hide()) : (v.eq(1).show(), v.eq(0).hide()), n.passport.reg_show_result_tips(r, m, o)
        }), t("#reg_email_pwd2,#reg_tel_pwd2,#reg_bind_pwd2").on("blur", function (e) {
            var r = t(this),
				i = n.string.dbc_to_sbc(r.val()),
				s = "\u4e24\u6b21\u8f93\u5165\u7684\u5bc6\u7801\u4e0d\u4e00\u81f4";
            if (!i) {
                n.passport.reg_show_result_tips(r, 1, "\u8bf7\u8f93\u5165\u786e\u8ba4\u5bc6\u7801");
                return
            }
            var o = i == r.parents("ul").find("input[type=password]:first").val() ? 2 : 1;
            s = o == 1 ? s : "", n.passport.reg_show_result_tips(r, o, s)
        })
    }, n.passport.reg_check_img_captcha_evt = function () {
        t("#reg_email_captcha,#reg_bind_captcha,#reg_mobile_captcha").on("keyup blur", function (e) {
            if (e.keyCode == 67 || e.keyCode == 17) return;
            var r = t(this),
				i = n.string.dbc_to_sbc(r.val()).replace(/\W/g, "");
            e.type == "blur" && (i.length < 1 ? (r.data("ok", "0"), r.siblings(".err").text("\u8bf7\u8f93\u5165\u53f3\u8fb9\u7684\u5b57\u7b26")) : (r.siblings(".err").html("&nbsp;"), r.data("ok", "1"))), r.val(i)
        })
    }, n.passport.reg_check_email_evt = function () {
        t("#reg_email,#reg_bind").on("blur", function (e) {
            var r = t(this),
				i = n.string.dbc_to_sbc(r.val()).replace(/[^0-9a-z\.\-\_@]/gi, ""),
				s = "\u8bf7\u8f93\u5165\u6709\u6548\u7684\u90ae\u7bb1\u5730\u5740",
				o = /^[0-9a-z][0-9a-z\.\-\_]{3,}@[0-9a-z]+([0-9a-z\-][0-9a-z])*(\.[0-9a-z][0-9a-z\-]+[0-9a-z])*(\.[a-z]{2,4})+$/gi;
            if (!i) {
                r.removeData("val"), n.passport.reg_show_result_tips(r, 1, "\u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740");
                return
            }
            r.val(i);
            if (i.replace(o, "")) {
                r.removeData("val"), n.passport.reg_show_result_tips(r, 1, s);
                return
            }
            if (r.data("val") == i) return;
            r.data("val", i), n.passport.reg_check_account(function (e) {
                n.passport.reg_show_result_tips(r, e.errno == "202" ? 2 : 1, e.msg)
            }, {
                op: "checkemail",
                loginEmail: i
            })
        })
    }, n.passport.reg_check_account = function (e, n) {
        t.ajax({
            url: "http://login.360.cn/index.php?" + t.param(n),
            dataType: "jsonp",
            error: function () {
                e({
                    errno: "999999999999",
                    errmsg: "\u8bf7\u68c0\u67e5\u7f51\u7edc\u662f\u5426\u901a\u7545"
                })
            },
            success: function (t) {
                e(t)
            }
        })
    }, n.passport.reg_show_result_tips = function (e, t, n) {
        var r = e.parents(".v").siblings(".t"),
			i = e.siblings(".err:first");
        t === 1 ? (r.html('<span class="ico ico-err-m"></span>'), i.removeClass("green").html(n || "&nbsp;"), e.data("ok", "0")) : t === 2 ? (r.html('<span class="ico ico-succ-m"></span>'), i.addClass("green").html(n || "&nbsp;"), e.data("ok", "1")) : (r.html(""), i.html("&nbsp;"), e.data("ok", "1"))
    }, n.passport.reg_check_data = function () {
        var e, r, i, s, o, u, a = t(".reg_swap .active").attr("regtype") || "4",
			f = a == "2" ? "tel" : a == "1" ? "email" : "bind",
			l = t("#reg_bind_submit").data("union") || "";
        r = t("#reg_" + f);
        if (r.data("ok") != "1") return;
        s = t("#reg_" + f + "_username");
        if (s.data("ok") != "1") return;
        i = t("#reg_" + f + "_pwd");
        if (i.data("ok") != "1") return;
        o = t("#reg_" + f + "_pwd2");
        if (o.data("ok") != "1") return;
        u = t("#reg_" + f + "_captcha");
        if (u.data("ok") != "1") return;
        f == "bind" && (a = "1"), e = {
            account: r.val(),
            userName: s.val(),
            password: n.sec.md5(i.val()),
            captcha: u.val(),
            authCode: u.val(),
            type: a,
            src: n.passport.get_profile_src(),
            isKeepAlive: !0,
            restype: "data",
            secEmail: "",
            nickName: "",
            unionAccount: l,
            loginEmailActiveFlag: "0",
            t: +(new Date)
        }, n.passport.reg_submit(e)
    }, n.passport.reg_submit = function (e) {
        var r = n.config.ssl_reg,
			i = n.passport.coop(),
			s = r || window.location.protocol + "//" + window.location.hostname != n.config.reg_url,
			o = "json";
        s && (o = "jsonp");
        var u = (r ? n.config.ssl_reg_url : n.config.reg_url) + "/user/reg/?" + t.param(e);
        n.passport.is_post = !0, t.ajax({
            url: u,
            dataType: o,
            error: function (e, t, r) {
                n.passport.is_post = !1, alert("\u8bf7\u68c0\u67e5\u7f51\u7edc\u662f\u5426\u6b63\u5e38\u540e\uff0c\u518d\u8bd5\u4e00\u6b21")
            },
            success: function (e) {
                n.passport.reg_callback(e)
            }
        })
    }, n.passport.reg_callback = function (e) {
        n.passport.is_post = !1, e.errno == "0" ? (e.userinfo.tips = e.userinfo.unionAccount ? "\u606d\u559c\uff0c\u8d2d\u5f69\u6635\u79f0\u7ed1\u5b9a\u6210\u529f\uff01" : "\u606d\u559c\uff0c\u6ce8\u518c\u6210\u529f\uff01", n.passport.callback_ok(e)) : (alert(e.errmsg), e.errno == "10003" && t("#ifm_captcha").attr("src", t("#ifm_captcha").attr("src") + "&t" + +(new Date)))
    }, n.passport.quickReg = function (e, r) {
        n.passport._callback_private = _.isFunction(r) ? r : n.passport._callback_private != t.noop ? n.passport._callback_private : _.isFunction(n.passport.callback_pages) ? n.passport.callback_pages : t.noop;
        var i = [],
			s = e || {};
        return i.push('<div class="panel panel-t1 panel-reallogin" style="width:420px;">'), i.push('<div class="panel-content"><div class="hd"><h3>' + (s.title || "\u5feb\u901f\u6ce8\u518c") + "</h3></div>"), i.push('<div class="bd"><div class="real-form02"><h3 class="ts-hight">\u60a8\u8fd8\u6ca1\u6709\u5728360\u5f69\u7968\u6ce8\u518c\uff0c\u8bf7\u5148\u6ce8\u518c</h3>'), i.push('<div class="form form-panel"><ul><li class="fm-item"><label for="#" class="k">\u624b\u673a\u53f7\uff1a</label>'), i.push('<span class="v"><input type="text" value="' + (s.mobile || "") + '"  class="text change-phone txt-mobile" maxlength="11" placeholder="\u8bf7\u8f93\u5165\u624b\u673a\u53f7\u7801"><span class="err">&nbsp;</span></span></li>'), i.push('<li class="fm-item"><label for="#" class="k">\u9a8c\u8bc1\u7801\uff1a</label><span class="v"><input type="text" maxlength="10" class="text input-small txt-captcha" placeholder="\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801" style="width:76px;"><span class="err">&nbsp;</span>'), i.push('</span><span class="t"><iframe frameborder="0" scrolling="no" height="33" width="150" id="ifm_m_captcha" style="vertical-align:middle;" src="' + ((n.config.ssl_reg ? n.config.ssl_reg_url : n.config.reg_url) + "/captcha?app=caipiao&type=new&t=" + +(new Date)) + '"></iframe></span></li>'), i.push('<li class="fm-item"><label for="#" class="k">\u786e\u8ba4\u7801\uff1a</label><span class="v"><input type="text" maxlength="6" class="text input-small txt-check" placeholder="\u624b\u673a\u786e\u8ba4\u7801"><span class="err">&nbsp;</span>'), i.push('</span><span class="t"><a href="#" class="btn-panel btn-panel02 btn-getcheck">\u83b7\u53d6\u6821\u9a8c\u7801</a></span></li>'), i.push('<li class="fm-item"><label for="#" class="k">\u586b\u5bc6\u7801\uff1a</label><span class="v"><input type="password" maxlength="20" class="text change-phone txt-pwd" placeholder="6-20\u4e2a\u5b57\u7b26\uff0c\u4e0d\u80fd\u4e3a\u6c49\u5b57\uff08\u533a\u5206\u5927\u5c0f\u5199\uff09"><span class="err">&nbsp;</span>'), i.push('</span></li></ul><div class="btns02"><button type="button" id="btn-confirm" class="btn"><span class="btn-large-link">' + (s.btntxt || "\u7acb\u5373\u6ce8\u518c") + "</span></button></div>"), i.push('</div></div></div></div><span class="close"></span><span class="sd"></span></div>'), n.lightbox.show({
            html: i.join(""),
            cancel_sel: ".close",
            on_focus: ".txt-mobile",
            callback: function () {
                var e = {},
					r = t(".panel-reallogin");
                r.on("blur", ".txt-mobile", function () {
                    var e = t(this),
						r = n.validation.mobile({
						    content: e.val()
						}),
						i = e.parents(".fm-item").find(".err");
                    r.code == 0 ? t.ajax({
                        url: "http://login.360.cn/index.php",
                        type: "POST",
                        data: {
                            op: "checkmobile",
                            mobile: e.val()
                        },
                        dataType: "jsonp",
                        success: function (e) {
                            e.errno == 0 ? i.text(e.msg).addClass("green").show() : i.text(e.msg).removeClass("green").show()
                        }
                    }) : i.text("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01").removeClass("green").show()
                }), r.on("click", ".btn-getcheck", function (e) {
                    e && e.preventDefault();
                    var r = t(this),
						i = r.parents(".fm-item").find(".err"),
						s = t(".txt-mobile").val(),
						o = t(".txt-captcha");
                    if (n.validation.mobile({
                        content: s
                    }).code != 0) return t(".txt-mobile").siblings(".err").text("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01"), !1;
                    if (!o.val()) return o.siblings(".err").text("\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801\uff01"), !1;
                    if (!r.data("on")) {
                        var u = "json";
                        window.location.hostname != "cp.360.cn" && (u = "jsonp"), t.ajax({
                            url: n.config.login_url + "/authmobile/sendcode/",
                            dataType: u,
                            data: {
                                mobile: s,
                                captcha: o.val(),
                                _: +(new Date)
                            },
                            success: function (e) {
                                if (e.xCode == 0) {
                                    i.text(e.xMessage).addClass("green").show(), r.data("on", !0);
                                    var t = 120,
										n = setInterval(function () {
										    t--, t > 0 ? r.text(t + "\u79d2\u540e\u53ef\u91cd\u8bd5") : (r.text("\u83b7\u53d6\u6821\u9a8c\u7801"), r.data("on", !1), clearInterval(n))
										}, 1e3)
                                } else i.text(e.xMessage).removeClass("green").show()
                            }
                        })
                    }
                }), r.on("blur", ".txt-captcha", function () {
                    var e = t(this),
						n = e.val(),
						r = e.siblings(".err");
                    n ? r.html("&nbsp;").addClass("green") : r.text("\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801").removeClass("green").show()
                }), r.on("blur", ".txt-check", function () {
                    var e = t(this),
						n = e.val(),
						r = e.siblings(".err");
                    /^\d{6}$/g.test(n) ? r.html("&nbsp;").addClass("green") : r.text("\u786e\u8ba4\u7801\u4e3a6\u4f4d\u6570\u5b57").removeClass("green").show()
                }), r.on("blur", ".txt-pwd", function () {
                    var e = t(this),
						n = e.val().length;
                    n < 6 ? e.siblings(".err").text(e.attr("placeholder")).removeClass("green").show() : e.siblings(".err").html("&nbsp;").addClass("green")
                }), r.on("click", "#btn-confirm", function (e) {
                    e && e.preventDefault();
                    if (r.find(".green").length < 3) return !1;
                    var i = {
                        account: t(".txt-mobile").val(),
                        userName: "",
                        password: n.sec.md5(t(".txt-pwd").val()),
                        captcha: t(".txt-check").val(),
                        authCode: t(".txt-check").val(),
                        type: 2,
                        src: n.passport.get_profile_src(),
                        isKeepAlive: !0,
                        restype: "data",
                        secEmail: "",
                        nickName: "",
                        unionAccount: "",
                        loginEmailActiveFlag: "0",
                        t: +(new Date)
                    };
                    n.passport.reg_submit(i)
                })
            }
        })
    }, n.passport.bind_user = function (e) {
        var t = [];
        t.push('<div class="panel panel-t1 panel-reg nicheng"><div class="panel-content">'), t.push('<div class="hd"><h3>\u5b8c\u5584\u8d2d\u5f69\u8d44\u6599</h3></div><div class="bd"><div class="panel-reg-bd">'), t.push('<div class="top">\u60a8\u9996\u6b21\u767b\u5f55\u5f69\u7968\u4e2d\u5fc3\uff0c\u8bf7\u8bbe\u7f6e\u8d2d\u5f69\u6635\u79f0\uff0c\u5f00\u59cb\u5927\u5956\u4e4b\u65c5</div><div class="tab-content">'), t.push('<div class="tab-pane active"><div class="form form-panel"><ul>'), t.push('<li class="fm-item"><label for="#" class="k">\u8d2d\u5f69\u6635\u79f0\uff1a</label>'), t.push('<span class="v"><input type="text" tabindex="100" id="reg_bind_username" class="text text3" placeholder="\u7528\u4e8e\u60a8\u7684\u4e2d\u5956\u5c55\u793a\uff0c\u4e00\u65e6\u586b\u5199\u4e0d\u53ef\u4fee\u6539">'), t.push('<span class="err">&nbsp;</span></span><span class="t"></span></li>'), t.push('<li class="fm-item"><label for="#" class="k">\u8d2d\u5f69\u767b\u5f55\u5bc6\u7801\uff1a</label>'), t.push('<span class="v"><input type="password" tabindex="101" id="reg_bind_pwd" class="text text3" placeholder="\u4fdd\u969c\u60a8\u7684\u8d26\u6237\u5b89\u5168">'), t.push('<span class="err" style="display: none;">&nbsp;</span>'), t.push('<span class="err gray">\u5bc6\u7801\u5f3a\u5ea6 <span class="ui-mmqd"></span><span class="ui-mmqd"></span><span class="ui-mmqd"></span><span class="ui-mmqd">'), t.push('</span> <span class="c-qd"></span></span></span><span class="t"></span></li>'), t.push('<li class="fm-item"><label for="#" class="k">\u786e\u8ba4\u5bc6\u7801\uff1a</label>'), t.push('<span class="v"><input type="password" tabindex="102" id="reg_bind_pwd2" class="text text3" placeholder="\u518d\u8f93\u5165\u4e00\u6b21\u8d2d\u5f69\u767b\u5f55\u5bc6\u7801">'), t.push('<span class="err">&nbsp;</span></span><span class="t"></span></li>'), t.push('<li class="fm-item"><label for="#" class="k">\u5e38\u7528\u90ae\u7bb1\uff1a</label>'), t.push('<span class="v"><input type="text" tabindex="103" id="reg_bind" class="text text3" placeholder="\u5e38\u7528\u90ae\u7bb1\u7528\u6765\u627e\u56de\u767b\u5f55\u5bc6\u7801">'), t.push(' <span class="err">&nbsp;</span></span><span class="t"></span></li>'), t.push('<li class="fm-item"><label for="#" class="k">\u9a8c\u8bc1\u7801\uff1a</label>'), t.push('<span class="v"><input type="text" tabindex="104" id="reg_bind_captcha" maxlength="4" class="text text3 input-small w90" placeholder="\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801">'), t.push('<span class="err">&nbsp;</span></span><span class="t">'), t.push('<iframe frameborder="0" scrolling="no" height="33" width="150" id="ifm_captcha" src="' + ((n.config.ssl_reg ? n.config.ssl_reg_url : n.config.reg_url) + "/captcha?app=caipiao&type=new&t=" + +(new Date)) + '"></iframe></span></li></ul><div class="btns">'), t.push('<button class="btn" tabindex="105" id="reg_bind_submit"><span class="btn-panel btn-panel-primary">\u7acb\u5373\u7ed1\u5b9a</span></button></div>'), t.push("<p><b>\u6e29\u99a8\u63d0\u793a\uff1a</b></p><p>1\u3001\u8bbe\u7f6e\u8d2d\u5f69\u6635\u79f0\u540e\uff0c\u60a8\u7684\u4e2d\u5956\u8bb0\u5f55\u90fd\u4f1a\u4ee5\u6b64\u6635\u79f0\u4e3a\u6807\u8bc6\u663e\u793a<br />"), t.push("2\u3001\u8d2d\u5f69\u767b\u5f55\u5bc6\u7801\u662f\u4e3a\u4e86\u4fdd\u969c\u60a8\u7684\u8d26\u6237\u5b89\u5168\uff0c\u800c\u975e\u5408\u4f5c\u65b9\u767b\u5f55\u5bc6\u7801<br />3\u3001\u7ed1\u5b9a\u6635\u79f0\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u8bbe\u7f6e\u7684\u8d2d\u5f69\u6635\u79f0\u548c\u5bc6\u7801\u5feb\u901f\u767b\u5f55"), t.push('</p></div></div></div></div></div></div><span class="close"></span><span class="sd"></span></div>'), n.lightbox.show({
            html: t.join(""),
            cancel_sel: ".cls,.close",
            callback: function () {
                n.passport.bind_user_show_callback(e)
            }
        })
    }, n.passport.bind_user_show_callback = function (r) {
        n.passport.reg_check_email_evt(), n.passport.reg_check_user_evt(), n.passport.reg_check_pwd_evt(), n.passport.reg_check_img_captcha_evt(), t("#reg_bind_submit").data("union", r.unionAccount || ""), t("#reg_bind_submit").on("click", function (e) {
            e.preventDefault(), t(".panel-reg input:visible").trigger("blur"), n.passport.reg_check_data()
        }), t(".panel-reg input").on("keyup", function () {
            if (e.keyCode !== 13) return;
            t("#reg_bind_submit").trigger("click")
        })
    }
})();
(function () {
    "use strict";
    var e = window.qh360cp,
		t = window.jQuery;
    e.lottery = e.lottery || {}, e.lottery.show_pay_in_parent = !1, e.lottery.domain_cp360cn = "http://cpmimi.com/", e.lottery.domain_chart_cp360cn = "http://cpmimi.com/movements.aspx", e.lottery.domain_odds_cp360cn = "http://cpmimi.com/guoguan.aspx", e.lottery.price = 2, e.lottery.post_success_back_url = "", e.lottery.lott_domain = "", e.lottery.server_time_url = e.lottery.lott_domain + "/int/getcurtime/", e.lottery.team_url = e.lottery.lott_domain + "/int/teambet/", e.lottery.join_url = e.lottery.lott_domain + "/int/join/", e.lottery.trace_url = e.lottery.lott_domain + "/int/trace/", e.lottery.bet_url = e.lottery.lott_domain + "/int/bet/", e.lottery.pteambet_url = e.lottery.lott_domain + "/int/pteambet/", e.lottery.jcupload_url = e.lottery.lott_domain + "/jcfile/bet/", e.lottery.filter_url = e.lottery.lott_domain + "/filter/bet/", e.lottery.follow_url = e.lottery.lott_domain + "/followint/follow/", e.lottery.lott_type_id = {
        ssq: 220051,
        slt: 120029,
        p3: 110033,
        p5: 110035,
        qxc: 110022,
        sd: 210053,
        sdbj: 215152,
        qlc: 220028,
        xw: 223515,
        xwtj: 225303,
        jczq: 130042,
        jclq: 130043,
        dc: 130041,
        sfc: 130011,
        rj: 130019,
        kl8: 265108,
        syxwsd: 166406,
        syxwjx: 168009,
        syxwgd: 165707,
        syxwsh: 165207,
        syxwln: 166907,
        syxwhlj: 166507,
        syxwxj: 167607,
        syxwcq: 165407,
        sscjx: 258001,
        ssccq: 255401,
        k3js: 255903,
        k3hb: 257703,
        k3nm: 257503,
        k3gx: 255803,
        k3jl: 258203,
        pk3: 166407,
        jq4: 130018,
        zc6: 130016,
        dcsf: 130051
    }, e.lottery.lott_type_str = {
        220051: "ssq",
        120029: "slt",
        110033: "p3",
        110035: "p5",
        110022: "qxc",
        210053: "sd",
        215152: "sdbj",
        220028: "qlc",
        223515: "xw",
        225303: "xwtj",
        130042: "jczq",
        130043: "jclq",
        130041: "dc",
        130011: "sfc",
        130019: "rj",
        265108: "kl8",
        166406: "syxwsd",
        168009: "syxwjx",
        165207: "syxwsh",
        165707: "syxwgd",
        166507: "syxwhlj",
        166907: "syxwln",
        167607: "syxwxj",
        165407: "syxwcq",
        258001: "sscjx",
        255401: "ssccq",
        255903: "k3js",
        257703: "k3hb",
        257503: "k3nm",
        258203: "k3jl",
        255803: "k3gx",
        166407: "pk3",
        130018: "jq4",
        130016: "zc6",
        130051: "dcsf"
    }, e.lottery.lott_type_cn = {
        220051: "\u53cc\u8272\u7403",
        120029: "\u8d85\u7ea7\u5927\u4e50\u900f",
        110033: "\u6392\u5217\u4e09",
        110035: "\u6392\u5217\u4e94",
        110022: "\u4e03\u661f\u5f69",
        210053: "\u798f\u5f693D",
        220028: "\u4e03\u4e50\u5f69",
        223515: "15\u90095",
        225303: "\u5929\u6d2515\u90095",
        130042: "\u7ade\u5f69\u8db3\u7403",
        130043: "\u7ade\u5f69\u7bee\u7403",
        130041: "\u5317\u4eac\u5355\u573a",
        130011: "\u80dc\u8d1f\u5f69",
        130019: "\u4efb\u9009\u4e5d",
        265108: "\u5feb\u4e508",
        166406: "11\u90095",
        168009: "\u65b011\u90095",
        165207: "\u4e0a\u6d7711\u90095",
        165707: "\u5e7f\u4e1c11\u90095",
        166507: "\u5e78\u8fd011\u90095",
        166907: "\u8fbd\u5b8111\u90095",
        167607: "\u65b011\u90095",
        165407: "\u91cd\u5e8611\u90095",
        258001: "\u65b0\u65f6\u65f6\u5f69",
        255401: "\u8001\u65f6\u65f6\u5f69",
        255903: "\u8001\u5feb3",
        257703: "\u6e56\u5317\u5feb3",
        257503: "\u5feb3",
        255803: "\u597d\u8fd0\u5feb3",
        258203: "\u65b0\u5feb3",
        166407: "\u5feb\u4e50\u6251\u514b",
        130018: "\u56db\u573a\u8fdb\u7403",
        130016: "6\u573a\u534a\u5168\u573a",
        130051: "\u5355\u573a\u80dc\u8d1f\u8fc7\u5173"
    }, e.lottery.lott_kuaipin_arr = [e.lottery.lott_type_id.syxwsd, e.lottery.lott_type_id.syxwjx, e.lottery.lott_type_id.syxwgd, e.lottery.lott_type_id.syxwsh, e.lottery.lott_type_id.syxwxj, e.lottery.lott_type_id.syxwcq], e.lottery.lott_kuaipin_arr.push(e.lottery.lott_type_id.k3js, e.lottery.lott_type_id.k3jl, e.lottery.lott_type_id.k3nm, e.lottery.lott_type_id.k3hb, e.lottery.lott_type_id.k3gx), e.lottery.lott_kuaipin_arr.push(e.lottery.lott_type_id.sscjx, e.lottery.lott_type_id.ssccq, e.lottery.lott_type_id.kl8, e.lottery.lott_type_id.pk3), e.lottery.post_data = function (n, r) {
        if (!e.cookie.get("Q")) return e.passport.login(r), !1;
        n.buy_type = n.buy_type || "bet", n.t = n.t || +(new Date), e.pages.bet_page_click_id && (n.BetPageID = e.pages.bet_page_click_id, delete e.pages.bet_page_click_id), e.lightbox.loading("\u8bf7\u7a0d\u5019\uff0c\u6b63\u5728\u63d0\u4ea4\u6570\u636e\u2026"), t.ajax({
            url: e.lottery[n.buy_type + "_url"],
            type: "POST",
            data: n,
            dataType: "json",
            timeout: 18e4,
            error: function () {
                e.lightbox.alert({
                    content: "\u7f51\u7edc\u8d85\u65f6\uff0c\u8bf7\u7a0d\u540e\u518d\u8fdb\u884c\u6295\u6ce8\uff01"
                })
            },
            success: function (t) {
                e.lottery.check_status(t, r)
            }
        })
    }, e.lottery.join = function (t, n, r, i, s) {
        var o = {
            LotID: t,
            ProjID: n,
            BuyMoney: r,
            BetPageID: i || 0,
            buy_type: "join"
        };
        e.lottery.post_data(o, s)
    }, e.lottery.check_status = function (n, r) {
        if (typeof n != "object") try {
            n = t.optionsseJSON(n)
        } catch (i) { }
        var s = n.xCode * 1,
			o = encodeURIComponent(e.lottery.post_success_back_url || window.location.href),
			u, a, f, l, c = e.lottery.show_pay_in_parent && window.parent.Q && window.parent.Q.lightbox ? window.parent.Q.lightbox : e.lightbox;
        switch (s) {
            case 0:
                !n.xValue || (u = n.xValue.OrderID, a = n.xValue.URL, f = n.xValue.OrderTime, l = n.xValue.Coupons);
                var h = 429,
                    p = 269,
                    d = 428,
                    v = 225;
                l == "1" && (p = 322, v = 280);
                var m = "/pay/?orderid=" + u + "&paychan=" + a.replace(/^.*(\d)$/gi, "$1") + "&pdm=" + window.location.protocol + "//" + window.location.hostname + "&url=" + o + "&t=" + +(new Date);
                a.indexOf("/pay?orderid") != -1 && (m = a), c.frame({
                    pop_box_style: 'style="height:' + p + "px;width:" + h + 'px;"',
                    title: "\u786e\u8ba4\u4ed8\u6b3e",
                    content: '<iframe id="pop_ifm_payment' + +(new Date) + '" src="' + m + '"  frameborder="0" scrolling="no" width="' + d + '" height="' + v + '"></iframe>'
                });
                break;
            case 1:
            case 2:
                !n.xValue || (u = n.xValue.OrderID, a = n.xValue.URL, f = n.xValue.OrderTime);
                var g = t(".passport_username").html() || parent.$(".passport_username").html() || "",
                    y = t(".passport_username").attr("email") || parent.$(".passport_username").attr("email") || "";
                e.passport.get_current_user(function (n) {
                    n.code == "0" && g != n.username && (g = n.username, y = n.loginEmail || "", t(".passport_username").text(n.username));
                    var r = y.split("@"),
                        i = r[0].length,
                        f = 31 - r.length - g.length;
                    i > f && (r[0] = r[0].substring(0, f - 4) + "****", y = r.join("@"));
                    var l = g + (y ? ' <em style="color:#666;">\uff08' + y + "\uff09</em>" : ""),
                        c = s == 2 ? '<a class="passport_cancel" target="_blank" href="' + a + "/OrderID/" + u + "/?url=" + o + "&t=" + +(new Date) + '">\u60a8\u7684\u8d26\u6237\u5c1a\u672a\u586b\u5199\u652f\u4ed8\u5bc6\u7801\u6216\u5b9e\u540d\u4fe1\u606f\uff0c\u8bf7\u70b9\u51fb\u8fd9\u91cc\u8fdb\u884c\u5b8c\u5584\uff01</a>' : ' <em style="color:blue;text-align:left;">' + l + "</em><br />\u60a8\u7684\u8d26\u6237\u4f59\u989d\u4e0d\u8db3\uff0c\u8bf7\u5148\u8fdb\u884c\u5145\u503c";
                    e.lightbox.fAlert({
                        content: c,
                        pop_box_style: 'style="width:' + (s == 2 ? 384 : 440) + '"',
                        confirm_title: s == 2 ? "\u7acb\u5373\u5b8c\u5584" : "\u7acb\u5373\u5145\u503c",
                        confirm_callback: function () {
                            window.open(a + "/OrderID/" + u + "/?url=" + o + "&t=" + +(new Date))
                        }
                    })
                });
                break;
            case 100:
                e.passport.login(r);
                break;
            default:
                var b = function () {
                    n.TipAction === "1" && (window.opener = null, window.close()), n.TipAction === "2" && document.location.reload()
                };
                e.lightbox.alert({
                    content: n.xMessage || "\u63d0\u4ea4\u5931\u8d25",
                    cancel_callback: b,
                    confirm_callback: b
                })
        }
    }, e.lottery.get_issue_list = function (n) {
        var r = {
            lott_type_id: e.pages.lott_type_id,
            count: 10,
            begin_issue: "",
            callback: t.noop,
            fail: t.noop
        };
        t.extend(r, n), t.when(t.ajax({
            url: "/int/qissuelist/?LotID=" + r.lott_type_id + "&IssueCount=" + r.count + "&BeginIssue=" + r.begin_issue + "&r=" + +(new Date),
            dataType: "json"
        })).done(r.callback).fail(r.fail)
    }, e.lottery.act_post_data = function (n, r, i) {
        if (!e.cookie.get("Q")) return e.passport.login(i), !1;
        if (!n) return !1;
        r.t = r.t || +(new Date), e.pages.bet_page_click_id && (r.BetPageID = e.pages.bet_page_click_id, delete e.pages.bet_page_click_id), e.lightbox.loading("\u8bf7\u7a0d\u5019\uff0c\u6b63\u5728\u63d0\u4ea4\u6570\u636e\u2026"), t.ajax({
            url: n,
            type: "POST",
            data: r,
            dataType: "json",
            timeout: 18e4,
            error: function () {
                e.lightbox.alert({
                    content: "\u7f51\u7edc\u8d85\u65f6\uff0c\u8bf7\u7a0d\u540e\u518d\u8fdb\u884c\u652f\u4ed8\uff01"
                })
            },
            success: function (t) {
                e.lottery.act_check_status(t, i)
            }
        })
    }, e.lottery.act_check_status = function (n, r) {
        if (typeof n != "object") try {
            n = t.optionsseJSON(n)
        } catch (i) { }
        var s = n.xCode * 1,
			o = encodeURIComponent(e.lottery.post_success_back_url || window.location.href),
			u, a, f, l, c = e.lottery.show_pay_in_parent && window.parent.Q && window.parent.Q.lightbox ? window.parent.Q.lightbox : e.lightbox;
        switch (s) {
            case 0:
                !n.xValue || (u = n.xValue.OrderID, a = n.xValue.URL, f = n.xValue.OrderTime, l = n.xValue.Coupons);
                var h = 429,
                    p = 269,
                    d = 428,
                    v = 225;
                l == "1" && (p = 322, v = 280);
                var m = "/pay/actpay/?orderid=" + u + "&paychan=" + a.replace(/^.*(\d)$/gi, "$1") + "&pdm=" + window.location.protocol + "//" + window.location.hostname + "&url=" + o + "&t=" + +(new Date);
                a.indexOf("/pay/actpay?orderid") != -1 && (m = a), c.frame({
                    pop_box_style: 'style="height:' + p + "px;width:" + h + 'px;"',
                    title: "\u786e\u8ba4\u4ed8\u6b3e",
                    content: '<iframe id="pop_ifm_payment' + +(new Date) + '" src="' + m + '"  frameborder="0" scrolling="no" width="' + d + '" height="' + v + '"></iframe>'
                });
                break;
            case 1:
            case 2:
                !n.xValue || (u = n.xValue.OrderID, a = n.xValue.URL, f = n.xValue.OrderTime);
                var g = t(".passport_username").html() || parent.$(".passport_username").html() || "",
                    y = t(".passport_username").attr("email") || parent.$(".passport_username").attr("email") || "";
                e.passport.get_current_user(function (n) {
                    n.code == "0" && g != n.username && (g = n.username, y = n.loginEmail || "", t(".passport_username").text(n.username));
                    var r = y.split("@"),
                        i = r[0].length,
                        f = 31 - r.length - g.length;
                    i > f && (r[0] = r[0].substring(0, f - 4) + "****", y = r.join("@"));
                    var l = g + (y ? ' <em style="color:#666;">\uff08' + y + "\uff09</em>" : ""),
                        c = s == 2 ? '<a class="passport_cancel" target="_blank" href="' + a + "/OrderID/" + u + "/?url=" + o + "&t=" + +(new Date) + '">\u60a8\u7684\u8d26\u6237\u5c1a\u672a\u586b\u5199\u652f\u4ed8\u5bc6\u7801\u6216\u5b9e\u540d\u4fe1\u606f\uff0c\u8bf7\u70b9\u51fb\u8fd9\u91cc\u8fdb\u884c\u5b8c\u5584\uff01</a>' : ' <em style="color:blue;text-align:left;">' + l + "</em><br />\u60a8\u7684\u8d26\u6237\u4f59\u989d\u4e0d\u8db3\uff0c\u8bf7\u5148\u8fdb\u884c\u5145\u503c";
                    e.lightbox.fAlert({
                        content: c,
                        pop_box_style: 'style="width:' + (s == 2 ? 384 : 440) + '"',
                        confirm_title: s == 2 ? "\u7acb\u5373\u5b8c\u5584" : "\u7acb\u5373\u5145\u503c",
                        confirm_callback: function () {
                            window.open(a + "/OrderID/" + u + "/?url=" + o + "&t=" + +(new Date))
                        }
                    })
                });
                break;
            case 100:
                e.passport.login(r);
                break;
            default:
                var b = function () {
                    n.TipAction === "1" && (window.opener = null, window.close()), n.TipAction === "2" && document.location.reload()
                };
                e.lightbox.alert({
                    content: n.xMessage || "\u63d0\u4ea4\u5931\u8d25",
                    cancel_callback: b,
                    confirm_callback: b
                })
        }
    }
})();
(function () {
    "use strict";
    var e = window.jQuery,
		t = window.qh360cp,
		n = window._;
    t.lottery.random = function (e, n) {
        return n = n || {}, n.count = e.count, t.lottery["rdm" + e.lott_type_id](e, n)
    }, t.lottery["rdm" + t.lottery.lott_type_id.ssq] = function (n, r) {
        var i = {
            min: 1,
            max: 33,
            repeat: 0,
            sort: 1,
            size: 6,
            split_str: " "
        };
        e.extend(i, n);
        var s = {
            min: 1,
            max: 16,
            repeat: 0,
            sort: 1,
            size: 1,
            split_str: " "
        };
        e.extend(s, r);
        var o = t.number.random(i),
			u = t.number.random(s);
        return e.each(o, function (e) {
            o[e] += " + " + u[e]
        }), o
    }, t.lottery["random_plays" + t.lottery.lott_type_id.ssq] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.slt] = function (n, r) {
        var i = {
            min: 1,
            max: 35,
            repeat: 0,
            sort: 1,
            size: 5,
            split_str: " "
        };
        e.extend(i, n);
        var s = {
            min: 1,
            max: 12,
            repeat: 0,
            sort: 1,
            size: 2,
            split_str: " "
        };
        e.extend(s, r);
        var o = t.number.random(i),
			u = t.number.random(s);
        return e.each(o, function (e) {
            o[e] += " + " + u[e]
        }), o
    }, t.lottery["random_plays" + t.lottery.lott_type_id.slt] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.sd] = function (r) {
        var i = {
            min: 0,
            max: 9,
            size: 3
        };
        switch (r.plays) {
            case "Z1":
                r.repeat = 1;
                break;
            case "Z3":
            case "B3":
            case "C2":
                r.size = 2;
                break;
            case "Z6":
                break;
            case "1D":
            case "TL":
            case "3T":
            case "DX":
            case "JO":
            case "HS":
                r.size = 1;
                break;
            case "2D":
                r.size = 2
        }
        e.extend(i, r);
        var s = t.number.random(i);
        switch (r.plays) {
            case "B3":
            case "Z3":
                n.each(s, function (e, t) {
                    var n = parseInt(Math.random() * 10) % 2;
                    e.splice(n, 0, e[n])
                });
                break;
            case "1D":
                s = n.map(s, function (e, t) {
                    var n = e;
                    return e = ["-", "-", "-"], e[Math.floor(Math.random() * 3)] = n, e
                });
                break;
            case "2D":
                s = n.map(s, function (e, n) {
                    var r = t.number.random({
                        min: 0,
                        max: 2,
                        repeat: !1,
                        size: 2
                    })[0],
                        i = e;
                    return e = ["-", "-", "-"], e[r[0]] = i[0], e[r[1]] = i[1], e
                });
                break;
            case "C1":
                var o = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
                s = n.map(s, function (e, n) {
                    var r = t.number.random({
                        min: 0,
                        max: 9,
                        repeat: !1,
                        size: 1
                    })[0];
                    return e = o[r], e
                });
                break;
            case "C2":
                s = n.map(s, function (e, n) {
                    var r = t.number.random({
                        min: 0,
                        max: 9,
                        repeat: !0,
                        size: 2
                    })[0];
                    return e = (r + "").replace(/\,/g, ""), e
                });
                break;
            case "DX":
                var o = ["\u5927", "\u5c0f"];
                s = n.map(s, function (e, n) {
                    var r = t.number.random({
                        min: 0,
                        max: 1,
                        repeat: !1,
                        size: 1
                    })[0];
                    return e = o[r], e
                });
                break;
            case "JO":
                var o = ["\u5947", "\u5076"];
                s = n.map(s, function (e, n) {
                    var r = t.number.random({
                        min: 0,
                        max: 1,
                        repeat: !1,
                        size: 1
                    })[0];
                    return e = o[r], e
                });
                break;
            case "TL":
                var o = ["\u62d6\u62c9\u673a"];
                s = n.map(s, function (e, t) {
                    return e = o[0], e
                });
                break;
            case "3T":
                var o = ["\u4e09\u540c\u53f7"];
                s = n.map(s, function (e, t) {
                    return e = o[0], e
                });
                break;
            case "HS":
                var o = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27"];
                s = n.map(s, function (e, n) {
                    var r = t.number.random({
                        min: 0,
                        max: 27,
                        repeat: !1,
                        size: 1
                    })[0];
                    return e = o[parseInt(r)], e
                })
        }
        return s
    }, t.lottery["random_plays" + t.lottery.lott_type_id.sd] = function (e) {
        var t;
        switch (e[0]) {
            case "Z1":
            case "S1":
                t = ["Z1", "\u76f4\u9009"];
                break;
            case "Z3":
            case "S3":
                t = ["Z3", "\u7ec4\u4e09"];
                break;
            case "Z6":
            case "S6":
                t = ["Z6", "\u7ec4\u516d"];
                break;
            case "HS":
                t = ["HS", "\u548c\u6570"];
                break;
            case "B3":
                t = ["B3", "\u5305\u9009\u4e09"];
                break;
            case "B6":
                t = ["B6", "\u5305\u9009\u516d"];
                break;
            case "TX":
                t = ["TX", "\u901a\u9009"];
                break;
            case "1D":
                t = ["1D", "1D"];
                break;
            case "2D":
                t = ["2D", "2D"];
                break;
            case "C1":
                t = ["C1", "\u731c1D"];
                break;
            case "C2":
                t = ["C2", "\u731c2D"];
                break;
            case "DX":
                t = ["DX", "\u5927\u5c0f"];
                break;
            case "JO":
                t = ["JO", "\u5947\u5076"];
                break;
            case "TL":
                t = ["TL", "\u62d6\u62c9\u673a"];
                break;
            case "3T":
                t = ["3T", "\u731c\u4e09\u540c"];
                break;
            case "BA":
                t = ["Z1", "\u76f4\u9009"]
        }
        return t
    }, t.lottery["rdm" + t.lottery.lott_type_id.p3] = t.lottery["rdm" + t.lottery.lott_type_id.sd], t.lottery["random_plays" + t.lottery.lott_type_id.p3] = t.lottery["random_plays" + t.lottery.lott_type_id.sd], t.lottery["rdm" + t.lottery.lott_type_id.p5] = function (n) {
        var r = {
            min: 0,
            max: 9,
            repeat: 1,
            size: 5
        };
        e.extend(r, n);
        var i = t.number.random(r);
        return i
    }, t.lottery["random_plays" + t.lottery.lott_type_id.p5] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.qxc] = function (n) {
        var r = {
            min: 0,
            max: 9,
            repeat: 1,
            size: 7
        };
        e.extend(r, n);
        var i = t.number.random(r);
        return i
    }, t.lottery["random_plays" + t.lottery.lott_type_id.qxc] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.qlc] = function (n) {
        var r = {
            min: 1,
            max: 30,
            size: 7,
            sort: 1,
            repeat: 0,
            split_str: " "
        };
        e.extend(r, n);
        var i = t.number.random(r);
        return i
    }, t.lottery["random_plays" + t.lottery.lott_type_id.qlc] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.xw] = function (n) {
        var r = {
            min: 1,
            max: 15,
            size: 5,
            sort: 1,
            repeat: 0,
            split_str: " "
        };
        e.extend(r, n);
        var i = t.number.random(r);
        return i
    }, t.lottery["random_plays" + t.lottery.lott_type_id.xw] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.sscjx] = function (r) {
        var i = {
            min: 0,
            max: 9,
            size: 5,
            sep: ",",
            repeat: !0
        };
        switch (r.plays) {
            case "5D":
            case "5T":
                break;
            case "4D":
                r.size = 4;
                break;
            case "3D":
                r.size = 3;
                break;
            case "Z3":
                r.size = 2, r.repeat = !1;
                break;
            case "Z6":
                r.size = 3, r.repeat = !1;
                break;
            case "2D":
            case "Z2":
            case "F2":
            case "H2":
            case "S2":
                r.size = 2, r.repeat = !1;
                break;
            case "1D":
                r.size = 1;
                break;
            case "R1":
                r.size = 1;
                break;
            case "R2":
                r.size = 2;
                break;
            case "DD":
                r.min = 0, r.max = 3, r.size = 2
        }
        e.extend(i, r);
        var s = t.number.random(i);
        return s = n.map(s, function (e, n) {
            switch (r.plays) {
                case "Z3":
                    e = ["-", "-"].concat(e, e[1]);
                    break;
                case "R1":
                    var i = e;
                    e = ["-", "-", "-", "-", "-"], e[Math.floor(Math.random() * 5)] = i;
                    break;
                case "R2":
                    var s = t.number.random({
                        min: 0,
                        max: 4,
                        repeat: !1,
                        size: 2
                    })[0];
                    i = e, e = ["-", "-", "-", "-", "-"], e[s[0]] = i[0], e[s[1]] = i[1];
                    break;
                case "DD":
                    i = ["\u5c0f", "\u5927", "\u53cc", "\u5355"], e[0] = i[e[0] * 1] + i[e[1] * 1], e.pop();
                    break;
                case "H2":
                case "S2":
                    break;
                default:
                    var o = e.length;
                    e = ["-", "-", "-", "-", "-"].slice(0, 5 - o).concat(e)
            }
            return e
        }), s
    }, t.lottery["random_plays" + t.lottery.lott_type_id.sscjx] = function (e) {
        switch (e[0]) {
            case "F2":
                e = ["Z2", "\u4e8c\u661f", "\u7ec4\u9009"];
                break;
            case "Z6":
                e = ["Z3", "\u4e09\u661f", "\u7ec4\u516d"];
                break;
            case "H2":
                e = ["2D", "\u4e8c\u661f", "\u76f4\u9009"];
                break;
            case "S2":
                e = ["Z2", "\u4e8c\u661f", "\u7ec4\u9009"]
        }
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.ssccq] = t.lottery["rdm" + t.lottery.lott_type_id.sscjx], t.lottery["random_plays" + t.lottery.lott_type_id.ssccq] = t.lottery["random_plays" + t.lottery.lott_type_id.sscjx], t.lottery["rdm" + t.lottery.lott_type_id.syxwsd] = function (n) {
        var r = {
            min: 1,
            max: 11,
            size: 5,
            repeat: 0,
            split_str: " "
        },
			i = n.plays.substr(0, 1) == "Q";
        n.size = n.plays.replace(/\D/g, ""), n.sort = i ? 0 : 1, i && (n.split_str = ","), e.extend(r, n);
        var s = t.number.random(r);
        return s
    }, t.lottery["random_plays" + t.lottery.lott_type_id.syxwsd] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.syxwjx] = t.lottery["rdm" + t.lottery.lott_type_id.syxwsd], t.lottery["random_plays" + t.lottery.lott_type_id.syxwjx] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.syxwgd] = t.lottery["rdm" + t.lottery.lott_type_id.syxwsd], t.lottery["random_plays" + t.lottery.lott_type_id.syxwgd] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.syxwsh] = t.lottery["rdm" + t.lottery.lott_type_id.syxwsd], t.lottery["random_plays" + t.lottery.lott_type_id.syxwsh] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.syxwhlj] = t.lottery["rdm" + t.lottery.lott_type_id.syxwsd], t.lottery["random_plays" + t.lottery.lott_type_id.syxwhlj] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.syxwln] = t.lottery["rdm" + t.lottery.lott_type_id.syxwsd], t.lottery["random_plays" + t.lottery.lott_type_id.syxwln] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.syxwcq] = t.lottery["rdm" + t.lottery.lott_type_id.syxwsd], t.lottery["random_plays" + t.lottery.lott_type_id.syxwcq] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.syxwxj] = t.lottery["rdm" + t.lottery.lott_type_id.syxwsd], t.lottery["random_plays" + t.lottery.lott_type_id.syxwxj] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.kl8] = function (n) {
        var r = {
            min: 1,
            max: 80,
            size: 1,
            sort: 1,
            repeat: 0,
            split_str: " "
        },
			i = n.plays;
        n.size = i == "RA" ? 10 : i.replace(/\D/g, ""), e.extend(r, n);
        var s = t.number.random(r);
        return s
    }, t.lottery["random_plays" + t.lottery.lott_type_id.kl8] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.k3jl] = function (r) {
        var i = {
            min: 1,
            max: 6,
            size: 1,
            sort: 1,
            repeat: 0
        },
			s = [],
			o = function (e) {
			    for (var t = 0; t < r.count; t++) s[t] = e()
			},
			u = function () {
			    return parseInt(Math.random() * 6 + 1) + ""
			};
        switch (r.plays) {
            case "HSZ":
                r.min = 3, r.max = 18, e.extend(i, r), s = t.number.random(i);
                for (var a in s) s[a] = [s[a][0] * 1 + ""];
                break;
            case "3TT":
                o(function () {
                    return ["\u4e09\u540c\u53f7\u901a\u9009"]
                });
                break;
            case "3TD":
                e.extend(i, r), s = t.number.random(i), s = n.map(s, function (e) {
                    return e + e + e
                });
                break;
            case "2TF":
                e.extend(i, r), s = t.number.random(i), s = n.map(s, function (e) {
                    return e + e + "*"
                });
                break;
            case "2TD":
                r.size = 2, e.extend(i, r), s = t.number.random(i), s = n.map(s, function (e) {
                    return e[0] + e[0] + e[1]
                });
                break;
            case "3LT":
                o(function () {
                    return ["\u4e09\u8fde\u53f7\u901a\u9009"]
                });
                break;
            case "2BT":
            case "3BT":
                r.size = r.plays.replace(/\D/g, ""), r.split_str = "", e.extend(i, r), s = t.number.random(i)
        }
        return s
    }, t.lottery["random_plays" + t.lottery.lott_type_id.k3jl] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.k3js] = t.lottery["rdm" + t.lottery.lott_type_id.k3jl], t.lottery["random_plays" + t.lottery.lott_type_id.k3js] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.k3hb] = t.lottery["rdm" + t.lottery.lott_type_id.k3jl], t.lottery["random_plays" + t.lottery.lott_type_id.k3hb] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.k3nm] = t.lottery["rdm" + t.lottery.lott_type_id.k3jl], t.lottery["random_plays" + t.lottery.lott_type_id.k3nm] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.k3gx] = t.lottery["rdm" + t.lottery.lott_type_id.k3jl], t.lottery["random_plays" + t.lottery.lott_type_id.k3gx] = function (e) {
        return e
    }, t.lottery["rdm" + t.lottery.lott_type_id.pk3] = function (e) {
        var r = [],
			i = function (t) {
			    for (var n = 0; n < e.count; n++) r[n] = t()
			},
			s = {
			    min: 1,
			    max: 4,
			    size: 1
			},
			o = [],
			u;
        switch (e.plays) {
            case "HD":
            case "TD":
                i(function () {
                    return o = t.number.random(s), u = ["", "\u9ed1\u6843", "\u7ea2\u6843", "\u6885\u82b1", "\u65b9\u5757"], o = n.map(o, function (e) {
                        return u[e[0] * 1]
                    }), o
                });
                break;
            case "SD":
                s = {
                    min: 1,
                    max: 12,
                    size: 1
                }, i(function () {
                    u = ["", "A", 2, 3, 4, 5, 6, 7, 8, 9, 10, "J", "Q", "K", "A"];
                    var e;
                    return o = t.number.random(s), o = n.map(o, function (t) {
                        return e = t[0] * 1, u.slice(e, e + 3).join("")
                    }), o
                });
                break;
            case "BD":
            case "DD":
                s = {
                    min: 1,
                    max: 13,
                    size: 1
                }, i(function () {
                    return u = e.plays == "BD" ? ["", "AAA", 222, 333, 444, 555, 666, 777, 888, 999, 101010, "JJJ", "QQQ", "KKK"] : ["", "AA", 22, 33, 44, 55, 66, 77, 88, 99, 1010, "JJ", "QQ", "KK"], o = t.number.random(s), o = n.map(o, function (e) {
                        return u[e[0] * 1]
                    }), o
                });
                break;
            default:
                s = {
                    min: 1,
                    max: 13,
                    size: e.plays.match(/\d/g)[0] * 1,
                    sort: 1
                }, i(function () {
                    u = ["", "A", "2", "3", "4", "5", "6", "7", "8", "9", 10, "J", "Q", "K"];
                    var e;
                    return o = t.number.random(s), o[0] = n.map(o[0], function (t) {
                        return e = t * 1, u[e]
                    }), o[0] = o[0].join(""), o.join("")
                })
        }
        return r
    }, t.lottery["random_plays" + t.lottery.lott_type_id.pk3] = function (e) {
        return e[0].indexOf("R") < 0 && e.push("\u5355\u9009"), e
    }
})();
(function () {
    "use strict";
    var e = window.jQuery,
		t = window.qh360cp;
    e(function () {
        e(".passport_login").on("click", function (e) {
            e.preventDefault(), t.cookie.get("Q") ? t.lightbox.confirm({
                content_title: "\u786e\u5b9a\u8981\u91cd\u65b0\u767b\u5f55\u5417\uff1f",
                content: "\u60a8\u5df2\u7ecf\u767b\u5f55\u4e86\u4e00\u4e2a\u8d26\u53f7\uff0c\u662f\u5426\u8981\u91cd\u65b0\u767b\u5f55",
                confirm_a: '<a style="margin-left:15px;" href="#" class="lnk lightbox_cancel">\u53d6\u6d88</a>',
                confirm_callback: function () {
                    t.passport.login()
                },
                cancel_callback: function () {
                    window.location.reload()
                }
            }) : t.passport.login()
        }), e(".passport_reg").on("click", function (e) {
            e.preventDefault(), t.cookie.get("Q") ? t.lightbox.confirm({
                content_title: "\u786e\u5b9a\u8981\u91cd\u65b0\u6ce8\u518c\u8d26\u53f7\u5417\uff1f",
                content: "\u60a8\u5df2\u7ecf\u767b\u5f55\u4e86\u4e00\u4e2a\u8d26\u53f7\uff0c\u662f\u5426\u8981\u91cd\u65b0\u6ce8\u518c\u8d26\u53f7",
                confirm_a: '<a style="margin-left:15px;" href="#" class="lnk lightbox_cancel">\u53d6\u6d88</a>',
                confirm_callback: function () {
                    t.passport.reg()
                },
                cancel_callback: function () {
                    window.location.reload()
                }
            }) : t.passport.reg()
        }), e(".passport_logout").on("click", function () {
            e("#sys_logout_status").show()
        })
    })
})();
(function () {
    "use strict";
    var e = window.jQuery,
		t = window.qh360cp;
    t.pages = t.pages || {}, t.pages.user_info = {}, t.pages.user_info.up_info = function () {
        if (!t.cookie.get("Q")) {
            e(".passport_logined_box").hide(), e(".passport_login_box").show(), e("#mycpactive").hide();
            return
        }
        var n = e("#money_loading"),
			r = e("#mycpactive,.userinfomoney");
        n.show(), e.ajax({
            url: "/int/querybalance/?r=" + +(new Date),
            dataType: "json",
            type: "post",
            error: function () {
                n.hide()
            },
            success: function (i) {
                if (!i || i.code == "100") {
                    e(".passport_logined_box").hide(), e(".passport_login_box").show(), e("#mycpactive").hide();
                    return
                }
                var s, o, i = i || {
                    code: "",
                    balance: "",
                    frozen: "",
                    pktbalance: "",
                    cashbalance: ""
                };
                try {
                    if (typeof i.code == "string" && i.code == "0" && !!i.balance) {
                        var u = t.number.format(i.balance, 2, 0) * 1,
							a = t.number.format(i.cashbalance, 2, 0) * 1,
							f = t.number.format(i.frozen * 1, 2) * 1 || "\u6682\u65e0",
							l = i.pktbalance || 0,
							c = i.score || 0,
							h = i.couponSum && i.couponSum.active || 0,
							p = i.username,
							d = i.msgs || "0";
                        r.find(".money_all").text(u), r.find(".money_xianjin").text(a), r.find(".money_tikuan").text(f), r.find(".money_hongbao").text(l), r.find(".money_jifen").text(c), r.find(".money_active_hongbao").text(h), h > 0 && r.find(".money_active_hongbao").addClass("em").removeClass("gray999"), i.imgUrl && i.imgUrl.indexOf("t00df551a583a87f4e9") == -1 && r.find(".passport_portrait").attr("src", i.imgUrl.replace("48_48", r.find(".passport_portrait").attr("data-wh"))), e(".passport_username").text(p), d != "0" ? e(".passport_msg_count").text(d).addClass("red") : e(".passport_msg_count").text(d).removeClass("red");
                        var v = e("#user_money");
                        v.length && (v.find(".pro-money").text(u), v.find(".pro-xianjin").text(a), v.find(".pro-hongbao").text(l), v.find(".pro-active-hongbao").text(h), v.find(".pro-tikuan").text(f), v.find(".pro-jifen").text(c), v.find(".pro-username").text(p))
                    }
                } catch (m) { }
                n.hide()
            }
        })
    }, t.pages.top_nav = function () {
        e("#pub_top_lottery_list").hover(function () {
            clearTimeout(t.pages.pub_top_lottery_list_tmp);
            var n = e(this);
            t.pages.pub_top_lottery_list_tmp = setTimeout(function () {
                n.addClass("lottery-all-hover").find(".lottery-all-list").fadeIn()
            }, 100)
        }, function () {
            clearTimeout(t.pages.pub_top_lottery_list_tmp), e(this).removeClass("lottery-all-hover").find(".lottery-all-list").fadeOut()
        }).on("click", function (e) {
            e.preventDefault()
        }).find(".lottery-map-item a").on("click", function (t) {
            e(this).parents(".lottery-all-list").hide()
        }), e("#pub_top_nav_list_menu").find("li").hover(function () {
            e(this).find(".child-nav").show()
        }, function () {
            e(this).find(".child-nav").hide()
        }), e("#pub_top_nav_list_menu").find(".home-nav-telephone").hover(function () {
            e(this).find(".home-app-ewm").show()
        }, function () {
            e(this).find(".home-app-ewm").hide()
        }), e("#top_mobile_qc_btn").on("click", function (n) {
            var r = t.validation.mobile(e("#top_mobile_qc").val());
            if (r.code != 0) return e("#top_mobile_qc_err").text(r.msg), e("#top_mobile_qc").focus(), !1;
            n.preventDefault(), e.ajax({
                url: "/mobile/send/?mobile=" + r.val.replace(/\s/g, ""),
                dataType: "json",
                success: function (t) {
                    t = t || {};
                    var n = t.xMessage;
                    switch (t.xCode) {
                        case "0":
                            n = "\u53d1\u9001\u6210\u529f\uff0c\u8bf7\u6ce8\u610f\u67e5\u6536";
                            break;
                        case "402":
                        case "040":
                            n = "\u64cd\u4f5c\u9891\u7e41\uff0c\u8bf7\u60a85\u5206\u949f\u540e\u518d\u8bd5"
                    }
                    e("#top_mobile_qc_err").text(n), e("#top_mobile_qc").focus()
                }
            })
        })
    }, t.pages.ad_box = function () {
        var n = function (n) {
            var r = e("#guanggao");
            if (r.length > 0) {
                var i = !1,
                    s = t.date.to_date(r.attr("endTime")),
                    o = new Date(t.countdown.server_time),
                    u = r.attr("type"),
                    a = t.store.get("ggtype"),
                    f = t.store.get("ggpassed_qname"),
                    l = n,
                    c = function () {
                        var n = {
                            html: r.html(),
                            cancel_sel: "close",
                            times: 5e3,
                            callback: function () {
                                var n = this;
                                e("#" + n._main_id).find(".close,.link").click(function () {
                                    n.close(), l && (t.store.set("ggpassed_qname", l), t.store.set("ggtype", u))
                                })
                            }
                        };
                        t.lightbox.show(n)
                    };
                if (l) {
                    if (l != f || a != u) i = !0
                } else i = !0;
                o > s && (i = !1), i && c()
            }
        },
			r = e("#passport_login_box").add(e("#passport_login_box2")).add(e("#passport_login_box3"));
        t.cookie.get("Q") && r.filter(":visible").length ? (r.find(".passport_login_box").hide(), r.find(".passport_logined_box").show(), t.passport.get_current_username(function (e) {
            r.find(".passport_username").html(e), n(e)
        })) : n(r.find(".passport_username").text())
    }, t.pages.chong40de118 = function () {
        if (e.inArray(t.string.get_url_param("agent"), ["700007", "700005", "700004", "700011"]) > -1 && !t.cookie.get("Q")) {
            var n = '<div style="position: fixed; right:0px; bottom:0px; width:350px; height:222px;"><a href="http://huodong.cp.360.cn/crazy118/?agent=' + t.string.get_url_param("agent") + '" target="_blank"><img src="http://p4.qhimg.com/t01f09ac6320bb78676.png"></a><span style="width:23px; height:23px; cursor:pointer; color:black; font-size:20px; position:absolute; top:0px; right:0px;" id="scclose">\u00d7</span></div>';
            e("body").append(n), e("#scclose").on("click", function (t) {
                t.preventDefault(), e(this).parents("div").hide()
            })
        }
        var r = document.referrer;
        if (r != "" && r.indexOf("baidu") > 0) {
            var n = '<div style="position: fixed; right:0px; bottom:0px; width:350px; height:222px;"><a href="http://cpmimi.com/integral/integral_index.aspx" target="_blank"><img src="../../images/t01f09ac6320bb78676.png"></a><span style="width:23px; height:23px; cursor:pointer; color:black; font-size:20px; position:absolute; top:0px; right:0px;" id="scclose">\u00d7</span></div>';
            e("body").append(n), e("#scclose").on("click", function (t) {
                t.preventDefault(), e(this).parents("div").hide()
            })
        }
    }, t.pages.get_left_right = function (e, t) {
        var n, r, i, s, o, u;
        return n = document.documentElement, r = document.body, s = n.clientHeight, i = n.clientWidth, o = s - t + Math.max(n.scrollTop, r.scrollTop), u = i - e + Math.max(n.scrollLeft, r.scrollLeft), [o, u]
    }, t.pages.make_msg_read = function (n, r, i) {
        e.ajax({
            url: t.config.cp_url + "/popup/markread/",
            dataType: t.config.curr_domain == t.config.cp_url ? "json" : "jsonp",
            type: "post",
            data: {
                id: n,
                t: +(new Date)
            }
        }), r > 0 && t.cookie.set({
            name: "message_lightbox_id_" + i,
            expires: r,
            value: i
        })
    }, t.pages.push_message = function () {
        var n = document.location.href;
        e.ajax({
            url: t.config.cp_url + "/popup/popinfo/",
            dataType: t.config.curr_domain == t.config.cp_url ? "json" : "jsonp",
            type: "post",
            data: {
                referer: document.referrer || "",
                url: n,
                t: +(new Date)
            }
        }).done(function (n) {
            if (n && n.xCode == "0" && n.info) {
                var r = n.info.DisplayType,
					i = n.info.ImgUrl,
					s = n.info.MsgUrl,
					o = n.info.ID || 0,
					u = n.info.ValidEnd,
					a = n.info.MsgDefineID || o,
					f = '<a class="cls" href="#" style="position: absolute;right: 0;top:0;width:28px;height:28px;"><img src="../../images/t010ff115c49faea457.png" ></a>',
					l = parseInt((t.date.to_date(u) - new Date) / 86.4),
					c = new Image;
                c.onload = function () {
                    if (r == "2" || r == "3") if (t.cookie.get("message_lightbox_id_" + a) == a) return !1;
                    switch (r) {
                        case "2":
                            t.pages.tan_push_lightbox = t.lightbox.show({
                                html: "<div>" + f + '<a href="' + s + '" target="_blank" class="lightbox_cancel"><img src="' + i + '"></a></div>',
                                cancel_sel: ".cls",
                                confirm_sel: ".lightbox_cancel",
                                confirm_callback: function () {
                                    t.pages.make_msg_read(o, l, a)
                                },
                                cancel_callback: function () {
                                    t.pages.make_msg_read(o, l, a)
                                }
                            });
                            break;
                        case "3":
                            t.pages.tan_push_lightbox = t.lightbox.show({
                                html: "<div>" + f + '<a href="' + s + '" target="_blank" class="lightbox_cancel"><img src="' + i + '"></a></div>',
                                cancel_sel: ".cls",
                                confirm_sel: ".lightbox_cancel",
                                is_center: 0,
                                is_mask: 0,
                                is_resize: 0,
                                is_fixed: 0,
                                top: window.screen.height,
                                confirm_callback: function () {
                                    t.pages.make_msg_read(o, l, a)
                                },
                                cancel_callback: function () {
                                    t.pages.make_msg_read(o, l, a)
                                }
                            });
                            if (e("#ie6").length) {
                                var n = t.pages.get_left_right(t.pages.tan_push_lightbox.main_ele.width(), t.pages.tan_push_lightbox.main_ele.height());
                                t.pages.tan_push_lightbox.main_ele.css("left", n[1]).animate({
                                    top: n[0]
                                }), e(window).on("scroll", function () {
                                    var e = this;
                                    clearTimeout(this.tan_push_lightbox), t.pages.tan_push_lightbox.main_ele.hide().css("top", window.screen.height + t.pages.tan_push_lightbox.main_ele.height()), this.tan_push_lightbox = setTimeout(function () {
                                        var e = t.pages.get_left_right(t.pages.tan_push_lightbox.main_ele.width(), t.pages.tan_push_lightbox.main_ele.height());
                                        t.pages.tan_push_lightbox.main_ele.show().animate({
                                            top: e[0]
                                        }, 200)
                                    }, 500)
                                })
                            } else t.pages.tan_push_lightbox.main_ele.css({
                                position: "fixed",
                                right: 0,
                                bottom: -300,
                                top: "auto",
                                left: "auto"
                            }).animate({
                                bottom: 0
                            });
                            break;
                        default:
                    }
                }, c.src = i
            }
        }).fail()
    }, t.pages.is_show_stop_sale_tips = function () {
        t.pages.is_sale != "1" && e("#stopsale").length && e("#stopsale").html().replace(/\s/g, "") && t.lightbox.show({
            html: e("#stopsale").html(),
            cancel_sel: ".notice-close"
        })
    }, e(function () {
        e("#mycp").add(e("#mycpactive")).hover(function (t) {
            t.preventDefault(), e("#mycpactive").show()
        }, function (t) {
            t.preventDefault(), e("#mycpactive").hide()
        }), e("#mycp").on("mouseover", function () {
            t.pages.user_info.up_info()
        }), t.pages.top_nav(), t.pages.chong40de118(), t.pages.ad_box(), t.pages.push_message(), t.pages.is_show_stop_sale_tips()
    })
})();
(function () {
    "use strict";
    var e = window.qh360cp,
		t = window.jQuery;
    e.ui = e.ui || {}, e.ui.tab = function (t) {
        return new e.ui._tab(t)
    }, e.ui._tab = function (e) {
        this.control = e.control, this.content = e.content, this.event_name = e.event_name, this.current_class = e.current_class, this.default_selected = e.default_selected, this.offset = e.offset, this.stop_propagation = e.stop_propagation, this.prevent_default = e.prevent_default, this.prev_callback = e.prev_callback, this.callback = e.callback, this._init()
    }, e.ui._tab.prototype = {
        constructor: e.ui._tab,
        _init: function () {
            if (this.control === "" || typeof this.control != "string") return;
            typeof this.content != "string" && (this.content = "");
            if (typeof this.event_name != "string" || this.event_name === "") this.event_name = "click";
            typeof this.current_class == "undefined" && (this.current_class = ""), typeof this.default_selected != "number" && (this.default_selected = parseInt("0" + this.default_selected, 10)), this.offset = typeof this.offset != "number" ? parseInt("0" + this.offset, 10) : this.offset < 0 ? 0 : this.offset, this.stop_propagation = typeof this.stop_propagation == "undefined" ? !1 : !!this.stop_propagation, this.prevent_default = typeof this.prevent_default == "undefined" ? !0 : !!this.prevent_default, this._create()
        },
        _current_class: function (e) {
            return t.isArray(this.current_class) ? this.current_class[e] : this.current_class
        },
        _get_eles: function (e) {
            var n = e.split(" "),
				r;
            if (n.length > 1) {
                var i = t(n[0]);
                n.shift(), r = i.find(n.join(" "))
            } else r = t(e);
            return r
        },
        _create: function () {
            var e = this,
				n = this._get_eles(this.control),
				r = this._get_eles(this.content);
            n.each(function (i, s) {
                var o = i - e.offet < 0 ? !1 : !0;
                e.default_selected == i ? (t(this).addClass(e._current_class(i)), e.content !== "" && o && r.eq(i - e.offset).show()) : (t(this).removeClass(e._current_class(i)), e.content !== "" && o && r.eq(i - e.offset).hide()), t(this).on(e.event_name, function (o) {
                    var u = !0;
                    typeof e.prev_callback == "function" && e.prev_callback.call(s, i, s) === !1 && (u = !1), u && e.default_selected != i && (t(this).addClass(e._current_class(i)), n.eq(e.default_selected).removeClass(e._current_class(e.default_selected)), e.content !== "" && e.default_selected - e.offset >= 0 && r.eq(e.default_selected - e.offset).hide(), e.default_selected = i, e.content !== "" && e.default_selected - e.offset >= 0 && r.eq(e.default_selected - e.offset).show(), typeof e.callback == "function" && e.callback.call(s, i, s)), e.prevent_default || o.preventDefault(), e.stop_propagation && o.stopPropagation()
                })
            })
        }
    }
})();
(function () {
    "use strict";
    var e = window.jQuery,
		t = window.qh360cp;
    t.ui = t.ui || {}, t.ui.pages = function (n) {
        var r, i, s, o, u, a, f, l, c, h, p, d = [];
        r = n.page_no * 1 || 1, i = n.page_count * 1 || 0, o = typeof n.callback == "function" ? n.callback : e.noop, s = typeof n.create_callback == "function" ? n.create_callback : e.noop, u = n.box || ".page .pagesub", typeof n.go_page == "undefined" ? p = 1 : p = n.go_page, n.page_count < 1 || n.page_count * 1 == 1 && n.pages_one_hide ? e(u).parents(".page").hide() : e(u).parents(".page").show(), e.isNumeric(n.pn) ? h = n.pn : h = i > 100 ? 2 : 4, a = r - h < 1 ? 1 : r - h, f = r + h > i ? i : r + h, f = f < (h + 1) * 2 - 1 && i > (h + 1) * 2 ? f = (h + 1) * 2 - 1 : f, e(u).data("pageno", r), e(u).data("pages", i), d.push('<a href="javascript:;" class="pageup lnk">\u4e0a\u4e00\u9875</a> '), r - h > 2 ? d.push('<a href="javascript:;" class="num lnk">1</a><em> ... </em>') : r - h == 2 && d.push('<a href="javascript:;" class="num lnk">1</a>');
        for (var v = a; v <= f; v++) v == r ? d.push("<strong>" + v + "</strong>") : d.push('<a href="javascript:;" class="num lnk">' + v + "</a>");
        r + h < i - 1 ? d.push('<em> ... </em><a href="javascript:;" class="num lnk">' + i + "</a>") : r + h == i - 1 && d.push('<a href="javascript:;" class="num lnk">' + i + "</a>"), d.push(' <a href="javascript:;" class="pagedown lnk">\u4e0b\u4e00\u9875</a>'), p && (d.push(' <span class="ext">\u8df3\u8f6c\u81f3 <input style="width:30px;" type="text"  class="text go_page_no"> \u9875 '), d.push('<a href="#" class="btn-middle go_page_no_btn">\u786e\u5b9a</a></span>')), e(u).html(d.join("")), e(u + " .pageup").on("click", function (t) {
            t.preventDefault();
            if (r < 2) return;
            e(u).data("pageno", e(u).data("pageno") * 1 - 1), o.call(null)
        }), e(u + " .pagedown").on("click", function (t) {
            t.preventDefault();
            if (r >= i) return;
            e(u).data("pageno", e(u).data("pageno") * 1 + 1), o.call(null)
        }), e(u + " .num").not(".pagedown,.pageup").on("click", function (t) {
            t.preventDefault(), e(u).data("pageno", e(this).text() * 1), o.call(null)
        }), e(u + " .go_page_no").on("keyup blur", function () {
            var t = e(this).val().replace(/[^\d]/g, "");
            t = t < 1 ? 1 : t > i ? i : t, e(this).val(t)
        }), e(u + " .go_page_no_btn").on("click", function (n) {
            n.preventDefault();
            var r = ("0" + e(u + " .go_page_no").val().replace(/\D/g, "")) * 1;
            if (r) {
                if (r * 1 == e(u).data("pageno") * 1) return;
                e(u).data("pageno", r), o.call(null)
            } else t.lightbox.alert({
                is_close_other: 0,
                content: "\u8bf7\u8f93\u5165\u9875\u7801"
            })
        }), s.call(null, r, i, o, function () { }, function () { })
    }
})();
(function () {
    "use strict";
    var e = window.qh360cp,
		t = window.jQuery;
    e.countdown = e.countdown || {}, e.countdown.start = function (t) {
        return t.types ? new e.countdown.single(t) : new e.countdown.go(t)
    }, e.countdown._close = function (t) {
        this.options.types ? this.end_time = 0 : (this.t = 0, this.is_exec_callback = typeof t == "undefined" ? 1 : t, e.countdown.count--)
    }, e.countdown.server_time_url = "/i/lotapi.html?do=getcurtime", e.countdown.server_time = e.config.sys_time * 1e3 || +(new Date), e.countdown.count = 0, e.countdown.freq = 6e5, e.countdown.prev_update_time = +(new Date) - 5e3, e.countdown.update_time = function (n, r) {
        if (e.countdown.update_time.repeat && !r) return;
        if (e.countdown.prev_update_time + 5e3 > +(new Date)) return;
        e.countdown.prev_update_time = +(new Date), e.countdown.update_time.flag = !0, function i() {
            e.countdown.update_time.repeat = !0;
            if (!e.countdown.server_time_url || !e.countdown.update_time.flag || e.countdown.count < 1) return;
            clearTimeout(e.countdown.__updt), t.ajax({
                url: e.countdown.server_time_url + "&format=json&t=" + +(new Date) || "about:blank",
                dataType: "json",
                error: function () {
                    var t = e.countdown.freq < 6e4 ? 6e4 : e.countdown.freq;
                    e.countdown.__updt = setTimeout(i, t)
                },
                success: function (r) {
                    var i = typeof r == "object" ? r.t : r;
                    e.countdown.server_time = t.trim(i) * 1e3, typeof n == "function" && n.call(null)
                }
            })
        }()
    }, e.countdown.update_time.on = function () {
        e.countdown.update_time()
    }, e.countdown.update_time.off = function () {
        e.countdown.update_time.flag = !1, e.countdown.update_time.repeat = !1
    }, e.countdown.aliquots_remainder = function (e, t) {
        return [parseInt(e / t, 10), e % t]
    }, e.countdown.to_dhms = function (t) {
        var n, r, i;
        return n = e.countdown.aliquots_remainder(t * 1, 864e5), r = e.countdown.aliquots_remainder(n[1], 36e5), i = e.countdown.aliquots_remainder(r[1], 6e4), [n[0], r[0], i[0], parseInt(i[1] / 1e3, 10)]
    }, e.countdown.go = function (n) {
        e.countdown.count++, this.end_time = t.isNumeric(n.end_time) ? n.end_time * 1e3 : +e.date.to_date(n.end_time), this.sys_time = e.countdown.server_time, this.server_time_count = e.countdown.server_time, this.sid = n.sid, this.style = n.style || "DD\u5929hh\u5c0f\u65f6mm\u5206ss\u79d2", this.end_style = n.end_style || "", this.filter = n.filter || "", this.filled = n.filled, this.callback = typeof n.callback == "function" ? n.callback : t.noop, this.server_time_url = n.server_time_url, this.is_exec_callback = 1, this.t = this.end_time - this.sys_time, this.options = n, this.init(n)
    }, e.countdown.go.prototype = {
        init: function (n) {
            var r = this;
            n.freq * 1 && (e.countdown.freq = n.freq * 1), e.countdown.update_time(null, !0), function i() {
                var s, o;
                typeof n.every_callback == "function" && n.every_callback.call(r, r.t), r.sys_time != e.countdown.server_time && (r.sys_time = e.countdown.server_time, r.server_time_count = e.countdown.server_time, r.t = r.end_time - r.sys_time), r.t -= 1e3, r.server_time_count += 1e3, r.t > 0 ? (r.t < 3e3 && e.countdown.update_time(null, !0), s = e.countdown.to_dhms(r.t), r.style.indexOf("DD") < 0 && (s[1] += s[0] * 24), r.style.indexOf("hh") < 0 && (s[2] += s[1] * 60), r.style.indexOf("mm") < 0 && (s[3] += s[2] * 60), r.filled = typeof r.filled == "undefined" ? !0 : r.filled, r.filled && (s[1] = s[1] < 10 ? "0" + s[1] : s[1], s[2] = s[2] < 10 ? "0" + s[2] : s[2], s[3] = s[3] < 10 ? "0" + s[3] : s[3]), o = e.string.mul_replace(r.style, [
					[/DD/gi, s[0]],
					[/hh/gi, s[1]],
					[/mm/gi, s[2]],
					[/ss/gi, s[3]]
                ]), typeof r.filter == "function" && (o = r.filter(o)), t(r.sid).html(o), setTimeout(i, 1e3)) : (e.countdown.count--, r.is_exec_callback && (t(r.sid).html(r.end_style), r.callback.call(r)))
            }()
        },
        close: function (t) {
            e.countdown._close.call(this, t)
        }
    }, e.countdown.single = function (e) {
        this.end_time = t.isNumeric(e.end_time) ? e.end_time * 1 : 0, this.sid = e.sid, this.style = e.style || "ss\u79d2", this.end_style = e.end_style || "", this.filter = e.filter || "", this.filled = e.filled, this.callback = t.isFunction(e.callback) ? e.callback : t.noop, this.options = e, this.init(e)
    }, e.countdown.single.prototype = {
        constructor: e.countdown.single,
        init: function (n) {
            var r = this;
            (function i() {
                if (r.end_time > 0) {
                    r.end_time--;
                    var n = e.countdown.to_dhms(r.end_time * 1e3);
                    r.style.indexOf("DD") < 0 && (n[1] += n[0] * 24), r.style.indexOf("hh") < 0 && (n[2] += n[1] * 60), r.style.indexOf("mm") < 0 && (n[3] += n[2] * 60);
                    var s = e.string.mul_replace(r.style, [
						[/DD/gi, n[0]],
						[/hh/gi, n[1]],
						[/mm/gi, n[2]],
						[/ss/gi, n[3]]
                    ]);
                    typeof r.filter == "function" && (s = r.filter(s)), t(r.sid).html(s), setTimeout(i, 1e3)
                } else t(r.sid).html(r.end_style), r.callback.call(r)
            })()
        },
        close: function () {
            e.countdown._close.call(this)
        }
    }
})();
(function () {
    "use strict";
    var e = window.qh360cp,
		t = window.jQuery;
    e.placeholder = e.placeholder || {}, e.placeholder.is = "placeholder" in t('<input type="text">')[0], e.placeholder._hold = function (e, n) {
        e = t(e), n = n || {
            color: "#999"
        }, e.each(function (e, r) {
            r = t(r);
            var i = t.trim(r.attr("placeholder"));
            i && (r.val() || r.val(i), r[0].defaultValue = i, r.data("input_quondam_color", r.css("color")), n.color && r.css("color", n.color), r.on({
                focus: function (e) {
                    var n = t(this),
						r = t.trim(n.val());
                    r == n[0].defaultValue && (n.val(""), n.css("color", n.data("input_quondam_color")))
                },
                blur: function (e) {
                    var r = t(this),
						i = t.trim(r.val());
                    i || (r.val(r[0].defaultValue), r.css("color", n.color))
                }
            }))
        })
    }, e.placeholder.start = function (t, n) {
        e.placeholder.is || e.placeholder._hold(t, n)
    }
})();
(function () {
    $(function () {
        $(document).on("click", "a,button,input[type=checkbox],input[type=button],input[type=radio]", function () {
            $(this).trigger("blur")
        })
    })
})();
(function () {
    "use strict";
    var e = window.jQuery,
		t = window.qh360cp,
		n = window._;
    t.ui = t.ui || {}, t.ui.select = function (t) {
        t = t || {};
        var n = e(t.sel).parents(t.box || ".select-box"),
			r = n.find(".txt-box"),
			i = t.evt || "click",
			s = t.show_class || "";
        n.hover(function () { }, function () {
            var t = e(this);
            s ? n.removeClass(s) : t.find(".list").slideUp(100)
        }), r.on("click", function (t) {
            s ? n.addClass(s) : e(".ie6").length ? e(this).siblings(".list").show() : e(this).siblings(".list").slideDown(100)
        }), n.find(".list").on("click", "li:not(.lnk)", function (r) {
            r.preventDefault();
            var i = e(this),
				o = i.parents(".list"),
				u = o.siblings(".txt-box").find(".txt"),
				a = i.attr("val");
            s ? n.removeClass(s) : o.slideUp(100), u.html(i.html()), e(t.sel).val(a), e.isFunction(t.callback) && t.callback.call(e(t.sel), a, i)
        })
    }
})();
(function () {
    "use strict";
    var e = window.jQuery,
		t = window.qh360cp;
    t.pages = t.pages || {}, t.pages.href_add_random = function (n, r) {
        r = r || "", r ? e(n).on("click", r, t.pages.href_add_random_private) : e(n).on("click", t.pages.href_add_random_private)
    }, t.pages.href_add_random_private = function (n) {
        var r = !0,
			i = e(this);
        if (i.attr("norandom")) return;
        var s = (i.attr("href") || "").replace(window.location.href, "").replace(/r_a=[^&#]*/g, "");
        if (s.indexOf("javascript") != -1 || !s.replace(/\#.*$/g, "")) return;
        var o = s.split("#"),
			u = o[0].split("?"),
			a = u.length,
			f = t.sec.short_url(t.sec.md5(Math.random() + "_" + +(new Date)))[0];
        u[1] = (a > 1 && u[1] ? u[1].replace(/^&*|&*$/g, "") + "&" : "") + "r_a=" + f;
        var l = u.join("?") + (o[1] ? "#" + o[1] : ""),
			c = i.attr("target") || "",
			h = e("base[target]").attr("target") || "_self";
        c || (c = h);
        if (c) switch (c) {
            case "_top":
                try {
                    window.top.location.href = l
                } catch (p) {
                    r = !1
                }
                break;
            case "_blank":
                window.open(l);
                break;
            case "_self":
                window.location.href = l;
                break;
            case "_parent":
                try {
                    window.parent.location.href = l
                } catch (p) {
                    r = !1
                }
                break;
            case "":
                window.location.href = l;
                break;
            default:
                window.open(l, c)
        }
        r ? n.preventDefault() : i.attr("href", l)
    }, e(function () {
        t.pages.href_add_random("body", "a[href!=#]")
    })
})();